diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 03efa87b74..6e2e244c47 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,11 @@ "isRoot": true, "tools": { "csharpier": { - "version": "0.29.2", + "version": "1.3.0", "commands": [ - "dotnet-csharpier" - ] + "csharpier" + ], + "rollForward": false } } } \ No newline at end of file diff --git a/.silktouch/openal-clangsharp.stout b/.silktouch/openal-clangsharp.stout index b67feaa619..d84ad03c4c 100644 Binary files a/.silktouch/openal-clangsharp.stout and b/.silktouch/openal-clangsharp.stout differ diff --git a/.silktouch/opencl-clangsharp.stout b/.silktouch/opencl-clangsharp.stout index c3cee4b0a4..15b3302966 100644 Binary files a/.silktouch/opencl-clangsharp.stout and b/.silktouch/opencl-clangsharp.stout differ diff --git a/.silktouch/opengl-clangsharp.stout b/.silktouch/opengl-clangsharp.stout index 400d3c820d..8c501366d4 100644 Binary files a/.silktouch/opengl-clangsharp.stout and b/.silktouch/opengl-clangsharp.stout differ diff --git a/.silktouch/openxr-clangsharp.stout b/.silktouch/openxr-clangsharp.stout index 252ca036b2..6ddc4b0135 100644 Binary files a/.silktouch/openxr-clangsharp.stout and b/.silktouch/openxr-clangsharp.stout differ diff --git a/.silktouch/sdl-clangsharp.stout b/.silktouch/sdl-clangsharp.stout index c172df67bf..9d337d3386 100644 Binary files a/.silktouch/sdl-clangsharp.stout and b/.silktouch/sdl-clangsharp.stout differ diff --git a/.silktouch/vulkan-clangsharp.stout b/.silktouch/vulkan-clangsharp.stout index ec1dfbd799..faeb5ccb44 100644 Binary files a/.silktouch/vulkan-clangsharp.stout and b/.silktouch/vulkan-clangsharp.stout differ diff --git a/Directory.Packages.props b/Directory.Packages.props index 6a64c60210..2a635eb496 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -21,6 +21,8 @@ + + diff --git a/Silk.NET.slnx b/Silk.NET.slnx index 8ee5d577a6..759ceabb08 100644 --- a/Silk.NET.slnx +++ b/Silk.NET.slnx @@ -1,99 +1,99 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/for-contributors/Generator/generator-mods.md b/docs/for-contributors/Generator/generator-mods.md index 3cf4fadffe..d0c12ea055 100644 --- a/docs/for-contributors/Generator/generator-mods.md +++ b/docs/for-contributors/Generator/generator-mods.md @@ -27,9 +27,11 @@ ideally, no communication is done at all so that mods are kept completely standa ### Mod Configuration -Mods are configured through the generator config JSON file. Silk's config file is named `generator.json` and is located -at the root of the Silk.NET repository. This config file can be used as reference for your own config files. In -addition, most mods have a configuration class located in their source code with additional documentation. +Mods are configured as part of bindings generation jobs in a separate C# project. Silk's own configuration project is +the +[`Silk.NET.SilkTouch.Jobs`](https://github.com/dotnet/Silk.NET/blob/develop/3.0/sources/SilkTouch/Jobs/Program.cs) +project. This project can be used as reference for your own SilkTouch configuration projects. More information about +using the SilkTouch generator can be found in the [Using the Generator](using-the-generator.md) documentation. ## Available Mods @@ -186,7 +188,7 @@ development and iteration, the generator is typically set up so that platform-sp Usage recommendations: -This mod is configured differently from the rest of the mods. The JSON mod configuration follows the same pattern as the +This mod is configured differently from the rest of the mods. The C# mod configuration follows the same pattern as the rest of the mods, but the bulk of the configuration comes in the form of `.rsp` files. These `.rsp` files represent the command line arguments passed to ClangSharpPInvokeGenerator. More information about how to use this mod and how to configure the generator as a whole is found in the [Using the Generator](using-the-generator.md) documentation. @@ -373,16 +375,12 @@ Name affix categories: Example name affix configurations for `PrettifyNames`: -``` -"SharedPrefix": { - "Remove": true -} +```cs +["SharedPrefix"] = new() { Remove = true }, ``` -``` -"SharedPrefix": { - "IsDiscriminator": true -} +```cs +["SharedPrefix"] = new() { IsDiscriminator = true }, ``` Usage recommendations: @@ -465,8 +463,8 @@ This is a monolithic mod that handles behavior specific to Khronos-style APIs su Because this mod is intended more for internal use rather than public use, the documentation here will focus on decisions made during the development of the mod and other internal details rather than the exact usage of the mod. -For information relating to how the mod should be used, please use Silk's `generator.json` configuration, source code, -and `MixKhronosDataTests` as a reference. +For information relating to how the mod should be used, please use Silk's own configuration, source code, and +`MixKhronosDataTests` as a reference. (TODO: Document major decisions relating to `MixKhronosData`. This is difficult because of the mod's long development history, and while this section is already massive, it still does not cover everything the mod does. This should be done diff --git a/docs/for-contributors/Generator/using-the-generator.md b/docs/for-contributors/Generator/using-the-generator.md index 68aebfd43c..6aac8b34e6 100644 --- a/docs/for-contributors/Generator/using-the-generator.md +++ b/docs/for-contributors/Generator/using-the-generator.md @@ -17,7 +17,8 @@ Metal. There are three main things to configure: -1. Silk 3 - This is the [`generator.json`](https://github.com/dotnet/Silk.NET/blob/develop/3.0/generator.json) file. +1. Silk 3 - This is the [`Silk.NET.SilkTouch.Jobs`](https://github.com/dotnet/Silk.NET/blob/develop/3.0/sources/SilkTouch/Jobs/Program.cs) + project. You may also use a single file app instead of a full C# project. 2. ClangSharpPInvokeGenerator - This is the [`eng/silktouch`](https://github.com/dotnet/Silk.NET/tree/develop/3.0/eng/silktouch) folder. @@ -32,9 +33,13 @@ you are binding. ## SilkTouch Configuration -Silk defines the configuration for SilkTouch in the -[`generator.json`](https://github.com/dotnet/Silk.NET/blob/develop/3.0/generator.json) file. This file defines the -different bindings jobs and the list of mods to run for each job. +Silk defines the configuration for SilkTouch as regular C# in the +[`Silk.NET.SilkTouch.Jobs`](https://github.com/dotnet/Silk.NET/blob/develop/3.0/sources/SilkTouch/Jobs/Program.cs) +project. + +This project defines the different bindings jobs and the list of mods to run for each job. Silk's own bindings jobs are +split into multiple files for maintainability, but since this is regular C# code, you may organize your own job +definitions however you wish. For example, when binding to a C API: @@ -48,8 +53,8 @@ For example, when binding to a C API: Aside from reading documentation, some other ways to learn about the mods are to: -- Read through the tests. The tests act as examples for specific behaviors expected by each mod, with configurations, - inputs, and expected outputs provided for each case. +- Read through the SilkTouch tests. The tests act as examples for specific behaviors expected by each mod, with + configurations, inputs, and expected outputs provided for each case. - Add them one by one. Mods run in the order you define them and work off the output of the previous mod. @@ -105,7 +110,9 @@ eng - SDL3 ``` -Profiles likely will not be relevent for most C APIs, so the examples here will keep focusing on the SDL case. +Profiles are not likely to be required for your average C API required, so the examples here will keep focusing on the +SDL case. Profiles are needed when your API has multiple variants or needs to be generated on multiple platforms. For +additional reference, please use the OpenGL (TODO: or OpenXR bindings) bindings jobs as examples. The following is the folder structure used for Silk's SDL bindings. You do not have to structure it the way Silk does. Silk's structure focuses on keeping consistency in its response file organization, regardless of whether the API makes @@ -117,8 +124,8 @@ eng - sdl - SDL3 - generate.rsp <-- The main settings file. Used as the entrypoint. All import paths must be relative to this file. - - header.txt - sdl-SDL.h <-- Handwritten header file that #includes the relevant headers of the library you want to bind. + - header.txt - remap.rsp - settings.rsp <-- Shared settings for all profiles. ``` @@ -164,7 +171,7 @@ Silk.NET.SDL --define-macro TODO_DEFINE_MACROS=HERE --headerFile -header.txt +../header.txt --include-directory ../../../submodules/sdl/include --with-callconv @@ -238,23 +245,19 @@ MSBuild under the hood. The generator can be run directly from source using the following command: ```sh -dotnet run --project sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj -c Release -- generator.json --only SDL +dotnet run --project sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.Jobs.csproj -c Release -- --only SDL ``` You may use the `--help` option to display additional information about available options. ``` -dotnet run --project sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj -c Release -- --help +dotnet run --project sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.Jobs.csproj -c Release -- --help ``` Some notable options include the `--only` and `--skip` options. `--only` lets you specify the exact jobs to run. `--skip` is the opposite and lets you specify the jobs to skip. If `--only` and `--skip` is specified for the same job, `--skip` takes precedence. -Warning: There are currently some generator bugs associated with running multiple jobs in the same process. We recommend -that you use `--only` to ensure that only one job is executed per process. Running multiple processes in parallel is -fine. - ### Generated Bindings Output All generated binding will be output to the `Jobs.JOB_NAME.SourceProject` path defined in `generator.json`. diff --git a/eng/silktouch/sdl/SDL3/header.txt b/eng/silktouch/sdl/header.txt similarity index 100% rename from eng/silktouch/sdl/SDL3/header.txt rename to eng/silktouch/sdl/header.txt diff --git a/eng/silktouch/sdl/settings.rsp b/eng/silktouch/sdl/settings.rsp index 4ffc034a59..d5bc9b1ff4 100644 --- a/eng/silktouch/sdl/settings.rsp +++ b/eng/silktouch/sdl/settings.rsp @@ -2,7 +2,7 @@ --define-macro TODO_DEFINE_MACROS=HERE --headerFile -header.txt +../header.txt --include-directory ../../../submodules/sdl/include ../../../include/glcompat diff --git a/generator.json b/generator.json deleted file mode 100644 index ade9e36d58..0000000000 --- a/generator.json +++ /dev/null @@ -1,845 +0,0 @@ -{ - "Jobs": { - "Microsoft": { - "Solution": "Silk.NET.slnx", - "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" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/submodules/terrafx.interop.windows/generation/**/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/shared/strsafe/Windows.gen.cs": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/shared/strsafe/Windows.gen.cs" - }, - "InputSourceRoot": "eng/submodules/terrafx.interop.windows/sources/Interop/Windows", - "InputTestRoot": "eng/submodules/terrafx.interop.windows/tests/Interop/Windows", - "SkipScrapeIf": [ - "!win" - ] - }, - "ChangeNamespace": { - "Mappings": { - "TerraFX.Interop.(.*)": "Silk.NET.$1" - } - } - }, - "SDL": { - "SourceProject": "sources/SDL/SDL/Silk.NET.SDL.csproj", - "TestProject": "tests/SDL/SDL/Silk.NET.SDL.UnitTests.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "ExtractHandles", - "ExtractNestedTypes", - "ExtractEnumConstants", - "ExtractFunctionPointers", - "TransformHandles", - "TransformFunctions", - "TransformProperties", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/sdl/**/generate.rsp" - ], - "InputSourceRoot": "sources/SDL", - "InputTestRoot": "tests/SDL" - }, - "TransformHandles": { - "UseDsl": true - }, - "TransformFunctions": { - "BoolTypes": { - "SDL_bool": null - } - }, - "TransformProperties": { - "BoolTypes": { - "SDL_bool": null - } - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["SDL"] - }, - "PrettifyNames": { - "Affixes": { - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RewriteMemberValues": true - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - }, - "OpenGL": { - "SourceProject": "sources/OpenGL/OpenGL/Silk.NET.OpenGL.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "AddApiProfiles", - "BakeSourceSets", - "AddOpaqueStructs", - "MixKhronosData", - "TransformHandles", - "TransformFunctions", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/opengl/**/generate.rsp" - ], - "InputSourceRoot": "sources/OpenGL", - "InputTestRoot": "tests/OpenGL" - }, - "AddApiProfiles": { - "Profiles": [ - { - "Profile": "gl", - "SourceSubdirectory": "glcompat" - }, - { - "Profile": "glcore", - "SourceSubdirectory": "glcore", - "MinVersion": "3.2" - }, - { - "Profile": "gles1", - "SourceSubdirectory": "gles1", - "MaxVersion": "2.0" - }, - { - "Profile": "gles2", - "SourceSubdirectory": "gles2", - "MinVersion": "2.0" - } - ] - }, - "BakeSourceSets": { - "SourceSets": { - "glcompat": "gl", - "glcore": "gl", - "gles1": "gl", - "gles2": "gl" - } - }, - "AddOpaqueStructs": { - "Names": [ - "GLsync" - ] - }, - "MixKhronosData": { - "SpecPath": "eng/submodules/opengl-registry/xml/gl.xml", - "Namespace": "Silk.NET.OpenGL", - "TypeMap": { - "GLenum": "uint", - "TraceMaskMESA": "uint", - "PathRenderingTokenNV": "byte", - "PathCoordType": "byte" - }, - "IdentifyFunctionDataTypes": true, - "IdentifyEnumTypeNonExclusiveVendors": true, - "IdentifyEnumMemberImpliedVendors": true - }, - "AddVTables": { - "VTables": [ - { - "Kind": "DllImport" - }, - { - "Kind": "StaticWrapper" - }, - { - "Kind": "ThisThread", - "IsDefault": true, - "GenerateMakeCurrentPartial": true - } - ] - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["gl"], - "PrefixOverrides": { - "SyncObjectMask": "GL_SYNC", - "OcclusionQueryParameterNameNV": "GL", - "TexStorageAttribs": "GL", - "ContainerType": "GL", - "SeparableTargetEXT": "GL" - } - }, - "PrettifyNames": { - "Affixes": { - "HandleType": { - "Order": 1 - }, - "FunctionPointerDelegateType": { - "Order": 1 - }, - "KhronosVendor": { - "Order": -1 - }, - "KhronosFunctionDataType": { - "IsDiscriminator": true - }, - "KhronosImpliedVendor": { - "Remove": true - }, - "KhronosNonExclusiveVendor": { - "Remove": true - }, - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RewriteMemberValues": true - }, - "TransformHandles": { - "UseDsl": true - }, - "TransformFunctions": { - "BoolTypes": { - "GLboolean": null - } - }, - "TransformProperties": { - "BoolTypes": { - "GLboolean": null - } - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - }, - "OpenCL": { - "SourceProject": "sources/OpenCL/OpenCL/Silk.NET.OpenCL.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "AddApiProfiles", - "ExtractHandles", - "ExtractNestedTypes", - "ExtractFunctionPointers", - "MixKhronosData", - "TransformHandles", - "TransformFunctions", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/opencl/**/generate.rsp" - ], - "InputSourceRoot": "sources/OpenCL", - "InputTestRoot": "tests/OpenCL" - }, - "MixKhronosData": { - "SpecPath": "eng/submodules/opencl-docs/xml/cl.xml", - "Namespace": "Silk.NET.OpenCL", - "TypeMap": { - "cl_bitfield": "ulong", - "cl_properties": "ulong", - "intptr_t": "long", - "ErrorCodes": "int", - "cl_affinity_domain_ext": "uint", - "clCommandExecutionStatus": "uint", - "cl_compiler_mode_altera": "uint", - "cl_motion_estimation_desc_intel.mb_block_type": "uint", - "cl_motion_estimation_desc_intel.subpixel_mode": "uint", - "cl_motion_estimation_desc_intel.sad_adjust_mode": "uint", - "cl_motion_estimation_desc_intel.search_path_type": "uint", - "cl_arm_device_svm_capabilities.flags": "uint", - "cl_arm_svm_alloc.flags": "uint", - "cl_intel_advanced_motion_estimation.flags": "uint", - "cl_intel_advanced_motion_estimation.search_cost_penalty": "uint", - "cl_intel_advanced_motion_estimation.search_cost_precision": "uint", - "cl_intel_advanced_motion_estimation.intra_search_prediction_modes_buffer.luma_block": "uint", - "cl_intel_advanced_motion_estimation.intra_search_prediction_modes_buffer.chroma_block": "uint", - "cl_intel_advanced_motion_estimation.skip_block_type": "uint", - "cl_intel_advanced_motion_estimation.device_me_version": "uint", - "cl_intel_advanced_motion_estimation.cl_motion_detect_desc_intel": "uint", - "cl_intel_advanced_motion_estimation.cl_motion_detect_desc_intel.2": "uint", - "cl_intel_device_side_avc_motion_estimation.version": "uint", - "cl_intel_device_side_avc_motion_estimation.major": "uint", - "cl_intel_device_side_avc_motion_estimation.minor": "uint", - "cl_intel_device_side_avc_motion_estimation.major.dir": "uint", - "cl_intel_device_side_avc_motion_estimation.partition": "uint", - "cl_intel_device_side_avc_motion_estimation.window": "uint", - "cl_intel_device_side_avc_motion_estimation.adjust": "uint", - "cl_intel_device_side_avc_motion_estimation.subpixel": "uint", - "cl_intel_device_side_avc_motion_estimation.cost.precision": "uint", - "cl_intel_device_side_avc_motion_estimation.weight": "uint", - "cl_intel_device_side_avc_motion_estimation.border": "uint", - "cl_intel_device_side_avc_motion_estimation.skip": "uint", - "cl_intel_device_side_avc_motion_estimation.skip.dir": "uint", - "cl_intel_device_side_avc_motion_estimation.skip.block.based": "uint", - "cl_intel_device_side_avc_motion_estimation.intra": "uint", - "cl_intel_device_side_avc_motion_estimation.intra.luma": "uint", - "cl_intel_device_side_avc_motion_estimation.intra.neighbor": "uint", - "cl_intel_device_side_avc_motion_estimation.luma.predictor": "uint", - "cl_intel_device_side_avc_motion_estimation.frame.dir": "uint", - "cl_intel_device_side_avc_motion_estimation.slice": "uint", - "cl_intel_device_side_avc_motion_estimation.scan.dir": "uint", - "cl_command_termination_reason_arm": "uint", - "cl_platform_command_buffer_capabilities_khr": "uint", - "cl_device_command_buffer_capabilities_khr": "uint", - "cl_media_adapter_type_khr": "uint", - "cl_media_adapter_set_khr": "uint", - "host_cache_policy": "uint", - "allocation_type": "uint", - "cl_unified_shared_memory_capabilities_intel": "uint", - "cl_mem_alloc_info_intel": "uint", - "cl_semaphore_type": "uint", - "cl_kernel_workgroup_info": "uint" - }, - "Vendors": [ - "ALTERA" - ], - "IdentifyEnumMemberImpliedVendors": true - }, - "AddVTables": { - "VTables": [ - { - "Kind": "DllImport" - }, - { - "Kind": "StaticWrapper" - }, - { - "Kind": "ThisThread", - "IsDefault": true, - "GenerateFactoryPartial": true - } - ] - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["cl", "_cl"], - "PrefixOverrides": { - "cl_device_info": "CL_DEVICE", - "cl_context_properties": "CL_CONTEXT", - "cl_device_integer_dot_product_capabilities": "CL_DEVICE_INTEGER_DOT_PRODUCT", - "cl_device_integer_dot_product_capabilities_khr": "CL_DEVICE_INTEGER_DOT_PRODUCT" - } - }, - "PrettifyNames": { - "NameOverrides": { - "CL_DRIVER_VERSION": "DriverVersion", - "CL_DRIVER_UUID": "DriverUuid", - "CL_DRIVER_UUID_KHR": "DriverUuidKHR" - }, - "Affixes": { - "HandleType": { - "Order": 1 - }, - "FunctionPointerDelegateType": { - "Order": 1 - }, - "KhronosVendor": { - "Order": -1, - "Capitalize": true - }, - "KhronosFunctionDataType": { - "IsDiscriminator": true - }, - "KhronosImpliedVendor": { - "Remove": true - }, - "KhronosNonExclusiveVendor": { - "Remove": true - }, - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RewriteMemberValues": true - }, - "TransformHandles": { - "UseDsl": true - }, - "TransformFunctions": { - "BoolTypes": { - "cl_bool": null - } - }, - "TransformProperties": { - "BoolTypes": { - "cl_bool": null - } - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - }, - "OpenAL": { - "SourceProject": "sources/OpenAL/OpenAL/Silk.NET.OpenAL.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "ChangeNativeClass", - "AddApiProfiles", - "MixKhronosData", - "ExtractHandles", - "ExtractNestedTypes", - "ExtractEnumConstants", - "ExtractFunctionPointers", - "TransformHandles", - "InterceptNativeFunctions", - "TransformFunctions", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/openal*/**/generate.rsp" - ], - "InputSourceRoot": "sources/OpenAL", - "InputTestRoot": "tests/OpenAL" - }, - "ChangeNativeClass": { - "NewClasses": { - "(alc|ALC_).*": "ALContext", - "EFX_REVERB_PRESET_.*": "EfxReverbPreset" - } - }, - "MixKhronosData": { - "SpecPath": "eng/submodules/openal-soft/registry/xml/al.xml", - "Namespace": "Silk.NET.OpenAL", - "TypeMap": { - "ALenum": "uint", - "ALCenum": "uint" - }, - "NonStandardExtensionNomenclature": true, - "Vendors": [ - "SOFT", - "LOKI", - "EXT" - ], - "NonVendorSuffixes": [ - "Direct" - ], - "IdentifyFunctionDataTypes": true, - "IdentifyEnumTypeNonExclusiveVendors": true, - "IdentifyEnumMemberImpliedVendors": true - }, - "InterceptNativeFunctions": { - "NativeFunctionNames": [ - "alcOpenDevice", - "alcMakeContextCurrent" - ] - }, - "AddVTables": { - "VTables": [ - { - "Kind": "DllImport" - }, - { - "Kind": "StaticWrapper" - }, - { - "Kind": "ThisThread", - "IsDefault": true, - "GenerateFactoryPartial": true - } - ] - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["alc", "al"] - }, - "PrettifyNames": { - "NameOverrides": { - "ALContext": "ALContext", - "EFXEAXREVERBPROPERTIES": "EfxEaxReverbProperties", - "ALCcontextHandle": "ContextHandle", - "ALCdeviceHandle": "DeviceHandle", - "ALBUFFERCALLBACKTYPESOFT": "BufferCallbackSOFT", - "ALCEVENTPROCTYPESOFT": "ContextEventProcSOFT", - "ALEVENTPROCSOFT": "EventProcSOFT", - "ALDEBUGPROCEXT": "DebugProcEXT", - "LPALFOLDBACKCALLBACK": "FoldbackCallback" - }, - "Affixes": { - "HandleType": { - "Order": 1 - }, - "FunctionPointerDelegateType": { - "Order": 1 - }, - "KhronosVendor": { - "Order": -1 - }, - "KhronosFunctionDataType": { - "IsDiscriminator": true - }, - "KhronosImpliedVendor": { - "Remove": true - }, - "KhronosNonExclusiveVendor": { - "Remove": true - }, - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RewriteMemberValues": true - }, - "TransformFunctions": { - "BoolTypes": { - "ALboolean": null, - "ALCboolean": null - }, - "BenefitOfTheDoubtArrayTransformation": true - }, - "TransformProperties": { - "BoolTypes": { - "ALboolean": null, - "ALCboolean": null - } - }, - "TransformHandles": { - "UseDsl": true - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - }, - "OpenXR": { - "SourceProject": "sources/OpenXR/OpenXR/Silk.NET.OpenXR.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "ExtractHandles", - "ExtractNestedTypes", - "ExtractFunctionPointers", - "TransformHandles", - "MixKhronosData", - "AddApiProfiles", - "InterceptNativeFunctions", - "TransformFunctions", - "TransformProperties", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/openxr/**/generate.rsp" - ], - "InputSourceRoot": "sources/OpenXR", - "InputTestRoot": "tests/OpenXR" - }, - "AddApiProfiles": { - "Profiles": [ - { - "Profile": "openxr", - "SourceSubdirectory": "openxr" - } - ] - }, - "MixKhronosData": { - "SpecPath": "eng/submodules/openxr-sdk/specification/registry/xr.xml", - "Namespace": "Silk.NET.OpenXR", - "StructureTypes": [ - "XrStructureType" - ], - "FlagsTypes": [ - "XrFlags64" - ], - "IdentifyEnumMemberImpliedVendors": true - }, - "InterceptNativeFunctions": { - "NativeFunctionNames": [ - "xrCreateInstance" - ] - }, - "TransformFunctions": { - "BoolTypes": { - "XrBool32": null - } - }, - "TransformProperties": { - "BoolTypes": { - "XrBool32": null - } - }, - "TransformHandles": { - "UseDsl": true - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["PFN_xr", "xr"], - "PrefixOverrides": { - "XrPerfSettingsNotificationLevelEXT": "XR_PERF_SETTINGS_NOTIF_LEVEL", - "XrSceneMarkerQRCodeSymbolTypeMSFT": "XR_SCENE_MARKER_QR_CODE_SYMBOL_TYPE", - "XrStructureType": "XR_TYPE" - } - }, - "PrettifyNames": { - "Affixes": { - "HandleType": { - "Order": 1 - }, - "FunctionPointerDelegateType": { - "Order": 1 - }, - "KhronosVendor": { - "Order": -1 - }, - "KhronosImpliedVendor": { - "Remove": true - }, - "KhronosHandleType": { - "Remove": true - }, - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RemoveMembers": [ - { - "MemberName": "MaxEnum", - "MemberValue": "0x7FFFFFFF" - } - ], - "CoerceBackingTypes": "PreferUnsigned", - "RewriteMemberValues": true - }, - "AddVTables": { - "VTables": [ - { - "Kind": "DllImport" - }, - { - "Kind": "StaticWrapper" - }, - { - "Kind": "ThisThread", - "IsDefault": true, - "GenerateFactoryPartial": true - } - ] - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - }, - "Vulkan": { - "SourceProject": "sources/Vulkan/Vulkan/Silk.NET.Vulkan.csproj", - "Solution": "Silk.NET.slnx", - "DefaultLicenseHeader": "eng/silktouch/header.txt", - "Mods": [ - "AddIncludes", - "ClangScraper", - "MarkNativeNames", - "ExtractHandles", - "ExtractNestedTypes", - "ExtractFunctionPointers", - "TransformHandles", - "MixKhronosData", - "AddApiProfiles", - "InterceptNativeFunctions", - "TransformFunctions", - "TransformProperties", - "IdentifySharedPrefixes", - "PrettifyNames", - "TransformEnums", - "AddVTables", - "StripAttributes" - ], - "ClangScraper": { - "ClangSharpResponseFiles": [ - "eng/silktouch/vulkan/**/generate.rsp" - ], - "InputSourceRoot": "sources/Vulkan", - "InputTestRoot": "tests/Vulkan" - }, - "AddApiProfiles": { - "Profiles": [ - { - "Profile": "vulkan", - "SourceSubdirectory": "vulkan" - } - ] - }, - "MixKhronosData": { - "SpecPath": "eng/submodules/vulkan-docs/xml/vk.xml", - "Namespace": "Silk.NET.Vulkan", - "StructureTypes": [ - "VkStructureType" - ], - "FlagsTypes": [ - "VkFlags", - "VkFlags64" - ], - "ExcludeVendorSuffixIdentification": [ - "VK_VENDOR_ID_VIV", - "VK_VENDOR_ID_VSI", - "VK_VENDOR_ID_MESA" - ], - "IdentifyEnumMemberImpliedVendors": true - }, - "InterceptNativeFunctions": { - "NativeFunctionNames": [ - "vkCreateInstance", - "vkCreateDevice" - ] - }, - "TransformFunctions": { - "BoolTypes": { - "VkBool32": null - } - }, - "TransformProperties": { - "BoolTypes": { - "VkBool32": null - } - }, - "TransformHandles": { - "UseDsl": true - }, - "IdentifySharedPrefixes": { - "GlobalPrefixHints": ["PFN_vk", "vk"], - "PrefixOverrides": { - "VkImageCreateFlags2KHR": "VK_IMAGE_CREATE_2", - "VkPipelineCreateFlags2": "VK_PIPELINE_CREATE_2", - "VkMemoryDecompressionMethodFlagsEXT": "VK_MEMORY_DECOMPRESSION_METHOD" - } - }, - "PrettifyNames": { - "NameOverrides": { - "numAABBs": "NumAabbs" - }, - "Affixes": { - "HandleType": { - "Order": 1 - }, - "FunctionPointerDelegateType": { - "Order": 1 - }, - "KhronosVendor": { - "Order": -1 - }, - "KhronosImpliedVendor": { - "Remove": true - }, - "KhronosHandleType": { - "Remove": true - }, - "SharedPrefix": { - "Remove": true - } - } - }, - "TransformEnums": { - "AddNoneMemberToFlags": true, - "RemoveMembers": [ - { - "MemberName": "MaxEnum", - "MemberValue": "0x7FFFFFFF" - }, - { - "MemberName": "Invalid", - "MemberValue": "0x7FFFFFFF" - } - ], - "CoerceBackingTypes": "PreferUnsigned", - "RewriteMemberValues": true - }, - "AddVTables": { - "VTables": [ - { - "Kind": "DllImport" - }, - { - "Kind": "StaticWrapper" - }, - { - "Kind": "ThisThread", - "IsDefault": true, - "GenerateFactoryPartial": true - } - ] - }, - "StripAttributes": { - "Remove": [ - "NativeTypeName", - "NameAffix", - "Transformed" - ] - } - } - } -} diff --git a/sources/OpenAL/OpenAL/al/AL.gen.cs b/sources/OpenAL/OpenAL/al/AL.gen.cs index c11df0e5f9..33c4a52a79 100644 --- a/sources/OpenAL/OpenAL/al/AL.gen.cs +++ b/sources/OpenAL/OpenAL/al/AL.gen.cs @@ -5,8 +5,10 @@ // being header-derived only, implementations of the headers may have a less permissive license. using System; using System.Diagnostics; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenAL; @@ -26131,7 +26133,7 @@ uint value_size [NativeName("AL_EXT_FOLDBACK_NAME")] [SupportedApiProfile("al", ["AL_EXT_FOLDBACK"])] - public static ReadOnlySpan ExtFoldbackName => "AL_EXT_FOLDBACK"u8; + public static Utf8String ExtFoldbackName => "AL_EXT_FOLDBACK"u8; [NativeName("alAuxiliaryEffectSlotf")] [SupportedApiProfile("al", ["ALC_EXT_EFX"]), SupportedApiProfile("alc", ["ALC_EXT_EFX"])] diff --git a/sources/OpenAL/OpenAL/al/ALContext.gen.cs b/sources/OpenAL/OpenAL/al/ALContext.gen.cs index cbb083c22b..ce101fddf7 100644 --- a/sources/OpenAL/OpenAL/al/ALContext.gen.cs +++ b/sources/OpenAL/OpenAL/al/ALContext.gen.cs @@ -5,8 +5,10 @@ // being header-derived only, implementations of the headers may have a less permissive license. using System; using System.Diagnostics; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenAL; @@ -1934,7 +1936,7 @@ public static void SuspendContext(ContextHandle context) => [NativeName("ALC_EXT_EFX_NAME")] [SupportedApiProfile("al", ["ALC_EXT_EFX"]), SupportedApiProfile("alc", ["ALC_EXT_EFX"])] - public static ReadOnlySpan ExtEfxName => "ALC_EXT_EFX"u8; + public static Utf8String ExtEfxName => "ALC_EXT_EFX"u8; [NativeName("alcCaptureCloseDevice")] [SupportedApiProfile("alc", ["ALC_VERSION_1_1"], MinVersion = "1.1")] diff --git a/sources/OpenAL/OpenAL/al/IAL.gen.cs b/sources/OpenAL/OpenAL/al/IAL.gen.cs index 8d198744cf..58541c8e07 100644 --- a/sources/OpenAL/OpenAL/al/IAL.gen.cs +++ b/sources/OpenAL/OpenAL/al/IAL.gen.cs @@ -5,8 +5,10 @@ // being header-derived only, implementations of the headers may have a less permissive license. using System; using System.Diagnostics; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenAL; diff --git a/sources/OpenAL/OpenAL/al/IALContext.gen.cs b/sources/OpenAL/OpenAL/al/IALContext.gen.cs index 6baac04f1c..6cc68ddb5a 100644 --- a/sources/OpenAL/OpenAL/al/IALContext.gen.cs +++ b/sources/OpenAL/OpenAL/al/IALContext.gen.cs @@ -5,8 +5,10 @@ // being header-derived only, implementations of the headers may have a less permissive license. using System; using System.Diagnostics; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenAL; diff --git a/sources/OpenCL/OpenCL/OpenCL/BufferRegion.gen.cs b/sources/OpenCL/OpenCL/OpenCL/BufferRegion.gen.cs index 952e888a79..97df851e8e 100644 --- a/sources/OpenCL/OpenCL/OpenCL/BufferRegion.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/BufferRegion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/Cl.gen.cs b/sources/OpenCL/OpenCL/OpenCL/Cl.gen.cs index 324d4c61e3..844d317c06 100644 --- a/sources/OpenCL/OpenCL/OpenCL/Cl.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/Cl.gen.cs @@ -4,8 +4,10 @@ // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. using System; using System.Diagnostics.CodeAnalysis; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenCL; @@ -26875,7 +26877,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int LuidSize = 8; [NativeName("CL_KHR_FP64_EXTENSION_NAME")] - public static ReadOnlySpan KhrFp64ExtensionName => "cl_khr_fp64"u8; + public static Utf8String KhrFp64ExtensionName => "cl_khr_fp64"u8; [NativeName("CL_KHR_FP64_EXTENSION_VERSION")] public const int KhrFp64ExtensionVersion = ( @@ -26885,7 +26887,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_FP16_EXTENSION_NAME")] - public static ReadOnlySpan KhrFp16ExtensionName => "cl_khr_fp16"u8; + public static Utf8String KhrFp16ExtensionName => "cl_khr_fp16"u8; [NativeName("CL_KHR_FP16_EXTENSION_VERSION")] public const int KhrFp16ExtensionVersion = ( @@ -26895,7 +26897,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_APPLE_SETMEMOBJECTDESTRUCTOR_EXTENSION_NAME")] - public static ReadOnlySpan AppleSetmemobjectdestructorExtensionName => + public static Utf8String AppleSetmemobjectdestructorExtensionName => "cl_APPLE_SetMemObjectDestructor"u8; [NativeName("CL_APPLE_SETMEMOBJECTDESTRUCTOR_EXTENSION_VERSION")] @@ -26906,7 +26908,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_APPLE_CONTEXTLOGGINGFUNCTIONS_EXTENSION_NAME")] - public static ReadOnlySpan AppleContextloggingfunctionsExtensionName => + public static Utf8String AppleContextloggingfunctionsExtensionName => "cl_APPLE_ContextLoggingFunctions"u8; [NativeName("CL_APPLE_CONTEXTLOGGINGFUNCTIONS_EXTENSION_VERSION")] @@ -26917,7 +26919,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_ICD_EXTENSION_NAME")] - public static ReadOnlySpan KhrIcdExtensionName => "cl_khr_icd"u8; + public static Utf8String KhrIcdExtensionName => "cl_khr_icd"u8; [NativeName("CL_KHR_ICD_EXTENSION_VERSION")] public const int KhrIcdExtensionVersion = ( @@ -26931,7 +26933,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public static nint Icd2TagKHR => unchecked((nint)(0x4F50454E434C3331)); [NativeName("CL_KHR_ICD_UNLOADABLE_EXTENSION_NAME")] - public static ReadOnlySpan KhrIcdUnloadableExtensionName => "cl_khr_icd_unloadable"u8; + public static Utf8String KhrIcdUnloadableExtensionName => "cl_khr_icd_unloadable"u8; [NativeName("CL_KHR_ICD_UNLOADABLE_EXTENSION_VERSION")] public const int KhrIcdUnloadableExtensionVersion = ( @@ -26941,7 +26943,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_IL_PROGRAM_EXTENSION_NAME")] - public static ReadOnlySpan KhrIlProgramExtensionName => "cl_khr_il_program"u8; + public static Utf8String KhrIlProgramExtensionName => "cl_khr_il_program"u8; [NativeName("CL_KHR_IL_PROGRAM_EXTENSION_VERSION")] public const int KhrIlProgramExtensionVersion = ( @@ -26951,8 +26953,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_IMAGE2D_FROM_BUFFER_EXTENSION_NAME")] - public static ReadOnlySpan KhrImage2DFromBufferExtensionName => - "cl_khr_image2d_from_buffer"u8; + public static Utf8String KhrImage2DFromBufferExtensionName => "cl_khr_image2d_from_buffer"u8; [NativeName("CL_KHR_IMAGE2D_FROM_BUFFER_EXTENSION_VERSION")] public const int KhrImage2DFromBufferExtensionVersion = ( @@ -26962,8 +26963,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_INITIALIZE_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan KhrInitializeMemoryExtensionName => - "cl_khr_initialize_memory"u8; + public static Utf8String KhrInitializeMemoryExtensionName => "cl_khr_initialize_memory"u8; [NativeName("CL_KHR_INITIALIZE_MEMORY_EXTENSION_VERSION")] public const int KhrInitializeMemoryExtensionVersion = ( @@ -26973,8 +26973,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_TERMINATE_CONTEXT_EXTENSION_NAME")] - public static ReadOnlySpan KhrTerminateContextExtensionName => - "cl_khr_terminate_context"u8; + public static Utf8String KhrTerminateContextExtensionName => "cl_khr_terminate_context"u8; [NativeName("CL_KHR_TERMINATE_CONTEXT_EXTENSION_VERSION")] public const int KhrTerminateContextExtensionVersion = ( @@ -26984,7 +26983,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SPIR_EXTENSION_NAME")] - public static ReadOnlySpan KhrSpirExtensionName => "cl_khr_spir"u8; + public static Utf8String KhrSpirExtensionName => "cl_khr_spir"u8; [NativeName("CL_KHR_SPIR_EXTENSION_VERSION")] public const int KhrSpirExtensionVersion = ( @@ -26994,8 +26993,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_CREATE_COMMAND_QUEUE_EXTENSION_NAME")] - public static ReadOnlySpan KhrCreateCommandQueueExtensionName => - "cl_khr_create_command_queue"u8; + public static Utf8String KhrCreateCommandQueueExtensionName => "cl_khr_create_command_queue"u8; [NativeName("CL_KHR_CREATE_COMMAND_QUEUE_EXTENSION_VERSION")] public const int KhrCreateCommandQueueExtensionVersion = ( @@ -27005,7 +27003,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_NV_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME")] - public static ReadOnlySpan NvDeviceAttributeQueryExtensionName => + public static Utf8String NvDeviceAttributeQueryExtensionName => "cl_nv_device_attribute_query"u8; [NativeName("CL_NV_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION")] @@ -27016,7 +27014,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_AMD_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME")] - public static ReadOnlySpan AmdDeviceAttributeQueryExtensionName => + public static Utf8String AmdDeviceAttributeQueryExtensionName => "cl_amd_device_attribute_query"u8; [NativeName("CL_AMD_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION")] @@ -27027,7 +27025,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_ARM_PRINTF_EXTENSION_NAME")] - public static ReadOnlySpan ArmPrintfExtensionName => "cl_arm_printf"u8; + public static Utf8String ArmPrintfExtensionName => "cl_arm_printf"u8; [NativeName("CL_ARM_PRINTF_EXTENSION_VERSION")] public const int ArmPrintfExtensionVersion = ( @@ -27037,7 +27035,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_DEVICE_FISSION_EXTENSION_NAME")] - public static ReadOnlySpan ExtDeviceFissionExtensionName => "cl_ext_device_fission"u8; + public static Utf8String ExtDeviceFissionExtensionName => "cl_ext_device_fission"u8; [NativeName("CL_EXT_DEVICE_FISSION_EXTENSION_VERSION")] public const int ExtDeviceFissionExtensionVersion = ( @@ -27059,8 +27057,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const ulong PartitionByNamesListEndEXT = unchecked((ulong)(0) - 1); [NativeName("CL_EXT_MIGRATE_MEMOBJECT_EXTENSION_NAME")] - public static ReadOnlySpan ExtMigrateMemobjectExtensionName => - "cl_ext_migrate_memobject"u8; + public static Utf8String ExtMigrateMemobjectExtensionName => "cl_ext_migrate_memobject"u8; [NativeName("CL_EXT_MIGRATE_MEMOBJECT_EXTENSION_VERSION")] public const int ExtMigrateMemobjectExtensionVersion = ( @@ -27070,7 +27067,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_CXX_FOR_OPENCL_EXTENSION_NAME")] - public static ReadOnlySpan ExtCxxForOpenclExtensionName => "cl_ext_cxx_for_opencl"u8; + public static Utf8String ExtCxxForOpenclExtensionName => "cl_ext_cxx_for_opencl"u8; [NativeName("CL_EXT_CXX_FOR_OPENCL_EXTENSION_VERSION")] public const int ExtCxxForOpenclExtensionVersion = ( @@ -27080,7 +27077,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_QCOM_EXT_HOST_PTR_EXTENSION_NAME")] - public static ReadOnlySpan QcomExtHostPtrExtensionName => "cl_qcom_ext_host_ptr"u8; + public static Utf8String QcomExtHostPtrExtensionName => "cl_qcom_ext_host_ptr"u8; [NativeName("CL_QCOM_EXT_HOST_PTR_EXTENSION_VERSION")] public const int QcomExtHostPtrExtensionVersion = ( @@ -27090,7 +27087,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_QCOM_EXT_HOST_PTR_IOCOHERENT_EXTENSION_NAME")] - public static ReadOnlySpan QcomExtHostPtrIocoherentExtensionName => + public static Utf8String QcomExtHostPtrIocoherentExtensionName => "cl_qcom_ext_host_ptr_iocoherent"u8; [NativeName("CL_QCOM_EXT_HOST_PTR_IOCOHERENT_EXTENSION_VERSION")] @@ -27101,7 +27098,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_QCOM_ION_HOST_PTR_EXTENSION_NAME")] - public static ReadOnlySpan QcomIonHostPtrExtensionName => "cl_qcom_ion_host_ptr"u8; + public static Utf8String QcomIonHostPtrExtensionName => "cl_qcom_ion_host_ptr"u8; [NativeName("CL_QCOM_ION_HOST_PTR_EXTENSION_VERSION")] public const int QcomIonHostPtrExtensionVersion = ( @@ -27111,7 +27108,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_QCOM_ANDROID_NATIVE_BUFFER_HOST_PTR_EXTENSION_NAME")] - public static ReadOnlySpan QcomAndroidNativeBufferHostPtrExtensionName => + public static Utf8String QcomAndroidNativeBufferHostPtrExtensionName => "cl_qcom_android_native_buffer_host_ptr"u8; [NativeName("CL_QCOM_ANDROID_NATIVE_BUFFER_HOST_PTR_EXTENSION_VERSION")] @@ -27122,7 +27119,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_YUV_IMAGE_EXTENSION_NAME")] - public static ReadOnlySpan ImgYuvImageExtensionName => "cl_img_yuv_image"u8; + public static Utf8String ImgYuvImageExtensionName => "cl_img_yuv_image"u8; [NativeName("CL_IMG_YUV_IMAGE_EXTENSION_VERSION")] public const int ImgYuvImageExtensionVersion = ( @@ -27132,8 +27129,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_CACHED_ALLOCATIONS_EXTENSION_NAME")] - public static ReadOnlySpan ImgCachedAllocationsExtensionName => - "cl_img_cached_allocations"u8; + public static Utf8String ImgCachedAllocationsExtensionName => "cl_img_cached_allocations"u8; [NativeName("CL_IMG_CACHED_ALLOCATIONS_EXTENSION_VERSION")] public const int ImgCachedAllocationsExtensionVersion = ( @@ -27143,7 +27139,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_USE_GRALLOC_PTR_EXTENSION_NAME")] - public static ReadOnlySpan ImgUseGrallocPtrExtensionName => "cl_img_use_gralloc_ptr"u8; + public static Utf8String ImgUseGrallocPtrExtensionName => "cl_img_use_gralloc_ptr"u8; [NativeName("CL_IMG_USE_GRALLOC_PTR_EXTENSION_VERSION")] public const int ImgUseGrallocPtrExtensionVersion = ( @@ -27153,7 +27149,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_GENERATE_MIPMAP_EXTENSION_NAME")] - public static ReadOnlySpan ImgGenerateMipmapExtensionName => "cl_img_generate_mipmap"u8; + public static Utf8String ImgGenerateMipmapExtensionName => "cl_img_generate_mipmap"u8; [NativeName("CL_IMG_GENERATE_MIPMAP_EXTENSION_VERSION")] public const int ImgGenerateMipmapExtensionVersion = ( @@ -27163,7 +27159,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_MEM_PROPERTIES_EXTENSION_NAME")] - public static ReadOnlySpan ImgMemPropertiesExtensionName => "cl_img_mem_properties"u8; + public static Utf8String ImgMemPropertiesExtensionName => "cl_img_mem_properties"u8; [NativeName("CL_IMG_MEM_PROPERTIES_EXTENSION_VERSION")] public const int ImgMemPropertiesExtensionVersion = ( @@ -27173,7 +27169,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUPS_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupsExtensionName => "cl_khr_subgroups"u8; + public static Utf8String KhrSubgroupsExtensionName => "cl_khr_subgroups"u8; [NativeName("CL_KHR_SUBGROUPS_EXTENSION_VERSION")] public const int KhrSubgroupsExtensionVersion = ( @@ -27183,7 +27179,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_MIPMAP_IMAGE_EXTENSION_NAME")] - public static ReadOnlySpan KhrMipmapImageExtensionName => "cl_khr_mipmap_image"u8; + public static Utf8String KhrMipmapImageExtensionName => "cl_khr_mipmap_image"u8; [NativeName("CL_KHR_MIPMAP_IMAGE_EXTENSION_VERSION")] public const int KhrMipmapImageExtensionVersion = ( @@ -27193,7 +27189,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_PRIORITY_HINTS_EXTENSION_NAME")] - public static ReadOnlySpan KhrPriorityHintsExtensionName => "cl_khr_priority_hints"u8; + public static Utf8String KhrPriorityHintsExtensionName => "cl_khr_priority_hints"u8; [NativeName("CL_KHR_PRIORITY_HINTS_EXTENSION_VERSION")] public const int KhrPriorityHintsExtensionVersion = ( @@ -27203,7 +27199,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_THROTTLE_HINTS_EXTENSION_NAME")] - public static ReadOnlySpan KhrThrottleHintsExtensionName => "cl_khr_throttle_hints"u8; + public static Utf8String KhrThrottleHintsExtensionName => "cl_khr_throttle_hints"u8; [NativeName("CL_KHR_THROTTLE_HINTS_EXTENSION_VERSION")] public const int KhrThrottleHintsExtensionVersion = ( @@ -27213,7 +27209,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_NAMED_BARRIER_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupNamedBarrierExtensionName => + public static Utf8String KhrSubgroupNamedBarrierExtensionName => "cl_khr_subgroup_named_barrier"u8; [NativeName("CL_KHR_SUBGROUP_NAMED_BARRIER_EXTENSION_VERSION")] @@ -27224,8 +27220,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTENDED_VERSIONING_EXTENSION_NAME")] - public static ReadOnlySpan KhrExtendedVersioningExtensionName => - "cl_khr_extended_versioning"u8; + public static Utf8String KhrExtendedVersioningExtensionName => "cl_khr_extended_versioning"u8; [NativeName("CL_KHR_EXTENDED_VERSIONING_EXTENSION_VERSION")] public const int KhrExtendedVersioningExtensionVersion = ( @@ -27263,7 +27258,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int NameVersionMaxNameSizeKHR = 64; [NativeName("CL_KHR_DEVICE_UUID_EXTENSION_NAME")] - public static ReadOnlySpan KhrDeviceUuidExtensionName => "cl_khr_device_uuid"u8; + public static Utf8String KhrDeviceUuidExtensionName => "cl_khr_device_uuid"u8; [NativeName("CL_KHR_DEVICE_UUID_EXTENSION_VERSION")] public const int KhrDeviceUuidExtensionVersion = ( @@ -27281,7 +27276,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int LuidSizeKHR = 8; [NativeName("CL_KHR_PCI_BUS_INFO_EXTENSION_NAME")] - public static ReadOnlySpan KhrPciBusInfoExtensionName => "cl_khr_pci_bus_info"u8; + public static Utf8String KhrPciBusInfoExtensionName => "cl_khr_pci_bus_info"u8; [NativeName("CL_KHR_PCI_BUS_INFO_EXTENSION_VERSION")] public const int KhrPciBusInfoExtensionVersion = ( @@ -27291,7 +27286,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUGGESTED_LOCAL_WORK_SIZE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSuggestedLocalWorkSizeExtensionName => + public static Utf8String KhrSuggestedLocalWorkSizeExtensionName => "cl_khr_suggested_local_work_size"u8; [NativeName("CL_KHR_SUGGESTED_LOCAL_WORK_SIZE_EXTENSION_VERSION")] @@ -27302,8 +27297,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_INTEGER_DOT_PRODUCT_EXTENSION_NAME")] - public static ReadOnlySpan KhrIntegerDotProductExtensionName => - "cl_khr_integer_dot_product"u8; + public static Utf8String KhrIntegerDotProductExtensionName => "cl_khr_integer_dot_product"u8; [NativeName("CL_KHR_INTEGER_DOT_PRODUCT_EXTENSION_VERSION")] public const int KhrIntegerDotProductExtensionVersion = ( @@ -27313,7 +27307,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTERNAL_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalMemoryExtensionName => "cl_khr_external_memory"u8; + public static Utf8String KhrExternalMemoryExtensionName => "cl_khr_external_memory"u8; [NativeName("CL_KHR_EXTERNAL_MEMORY_EXTENSION_VERSION")] public const int KhrExternalMemoryExtensionVersion = ( @@ -27327,7 +27321,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int MemDeviceHandleListEndKHR = 0; [NativeName("CL_KHR_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalMemoryDmaBufExtensionName => + public static Utf8String KhrExternalMemoryDmaBufExtensionName => "cl_khr_external_memory_dma_buf"u8; [NativeName("CL_KHR_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_VERSION")] @@ -27338,7 +27332,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTERNAL_MEMORY_OPAQUE_FD_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalMemoryOpaqueFdExtensionName => + public static Utf8String KhrExternalMemoryOpaqueFdExtensionName => "cl_khr_external_memory_opaque_fd"u8; [NativeName("CL_KHR_EXTERNAL_MEMORY_OPAQUE_FD_EXTENSION_VERSION")] @@ -27349,7 +27343,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalMemoryWin32ExtensionName => + public static Utf8String KhrExternalMemoryWin32ExtensionName => "cl_khr_external_memory_win32"u8; [NativeName("CL_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_VERSION")] @@ -27360,8 +27354,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalSemaphoreExtensionName => - "cl_khr_external_semaphore"u8; + public static Utf8String KhrExternalSemaphoreExtensionName => "cl_khr_external_semaphore"u8; [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_EXTENSION_VERSION")] public const int KhrExternalSemaphoreExtensionVersion = ( @@ -27379,7 +27372,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int SemaphoreExportHandleTypesListEndKHR = 0; [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalSemaphoreOpaqueFdExtensionName => + public static Utf8String KhrExternalSemaphoreOpaqueFdExtensionName => "cl_khr_external_semaphore_opaque_fd"u8; [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXTENSION_VERSION")] @@ -27390,7 +27383,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_SYNC_FD_EXTENSION_NAME")] - public static ReadOnlySpan KhrExternalSemaphoreSyncFdExtensionName => + public static Utf8String KhrExternalSemaphoreSyncFdExtensionName => "cl_khr_external_semaphore_sync_fd"u8; [NativeName("CL_KHR_EXTERNAL_SEMAPHORE_SYNC_FD_EXTENSION_VERSION")] @@ -27401,7 +27394,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SEMAPHORE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSemaphoreExtensionName => "cl_khr_semaphore"u8; + public static Utf8String KhrSemaphoreExtensionName => "cl_khr_semaphore"u8; [NativeName("CL_KHR_SEMAPHORE_EXTENSION_VERSION")] public const int KhrSemaphoreExtensionVersion = ( @@ -27415,7 +27408,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int SemaphoreDeviceHandleListEndKHR = 0; [NativeName("CL_ARM_IMPORT_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan ArmImportMemoryExtensionName => "cl_arm_import_memory"u8; + public static Utf8String ArmImportMemoryExtensionName => "cl_arm_import_memory"u8; [NativeName("CL_ARM_IMPORT_MEMORY_EXTENSION_VERSION")] public const int ArmImportMemoryExtensionVersion = ( @@ -27433,7 +27426,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const ulong ImportMemoryWholeAllocationARM = 0xffffffffffffffffUL; [NativeName("CL_ARM_SHARED_VIRTUAL_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan ArmSharedVirtualMemoryExtensionName => + public static Utf8String ArmSharedVirtualMemoryExtensionName => "cl_arm_shared_virtual_memory"u8; [NativeName("CL_ARM_SHARED_VIRTUAL_MEMORY_EXTENSION_VERSION")] @@ -27447,7 +27440,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int ArmGetCoreId = 1; [NativeName("CL_ARM_GET_CORE_ID_EXTENSION_NAME")] - public static ReadOnlySpan ArmGetCoreIdExtensionName => "cl_arm_get_core_id"u8; + public static Utf8String ArmGetCoreIdExtensionName => "cl_arm_get_core_id"u8; [NativeName("CL_ARM_GET_CORE_ID_EXTENSION_VERSION")] public const int ArmGetCoreIdExtensionVersion = ( @@ -27457,8 +27450,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_ARM_JOB_SLOT_SELECTION_EXTENSION_NAME")] - public static ReadOnlySpan ArmJobSlotSelectionExtensionName => - "cl_arm_job_slot_selection"u8; + public static Utf8String ArmJobSlotSelectionExtensionName => "cl_arm_job_slot_selection"u8; [NativeName("CL_ARM_JOB_SLOT_SELECTION_EXTENSION_VERSION")] public const int ArmJobSlotSelectionExtensionVersion = ( @@ -27468,8 +27460,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_ARM_SCHEDULING_CONTROLS_EXTENSION_NAME")] - public static ReadOnlySpan ArmSchedulingControlsExtensionName => - "cl_arm_scheduling_controls"u8; + public static Utf8String ArmSchedulingControlsExtensionName => "cl_arm_scheduling_controls"u8; [NativeName("CL_ARM_SCHEDULING_CONTROLS_EXTENSION_VERSION")] public const int ArmSchedulingControlsExtensionVersion = ( @@ -27479,7 +27470,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_ARM_CONTROLLED_KERNEL_TERMINATION_EXTENSION_NAME")] - public static ReadOnlySpan ArmControlledKernelTerminationExtensionName => + public static Utf8String ArmControlledKernelTerminationExtensionName => "cl_arm_controlled_kernel_termination"u8; [NativeName("CL_ARM_CONTROLLED_KERNEL_TERMINATION_EXTENSION_VERSION")] @@ -27490,7 +27481,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_ARM_PROTECTED_MEMORY_ALLOCATION_EXTENSION_NAME")] - public static ReadOnlySpan ArmProtectedMemoryAllocationExtensionName => + public static Utf8String ArmProtectedMemoryAllocationExtensionName => "cl_arm_protected_memory_allocation"u8; [NativeName("CL_ARM_PROTECTED_MEMORY_ALLOCATION_EXTENSION_VERSION")] @@ -27501,7 +27492,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_EXEC_BY_LOCAL_THREAD_EXTENSION_NAME")] - public static ReadOnlySpan IntelExecByLocalThreadExtensionName => + public static Utf8String IntelExecByLocalThreadExtensionName => "cl_intel_exec_by_local_thread"u8; [NativeName("CL_INTEL_EXEC_BY_LOCAL_THREAD_EXTENSION_VERSION")] @@ -27512,7 +27503,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME")] - public static ReadOnlySpan IntelDeviceAttributeQueryExtensionName => + public static Utf8String IntelDeviceAttributeQueryExtensionName => "cl_intel_device_attribute_query"u8; [NativeName("CL_INTEL_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION")] @@ -27523,7 +27514,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_DEVICE_PARTITION_BY_NAMES_EXTENSION_NAME")] - public static ReadOnlySpan IntelDevicePartitionByNamesExtensionName => + public static Utf8String IntelDevicePartitionByNamesExtensionName => "cl_intel_device_partition_by_names"u8; [NativeName("CL_INTEL_DEVICE_PARTITION_BY_NAMES_EXTENSION_VERSION")] @@ -27538,7 +27529,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int PartitionByNamesListEndINTEL = -1; [NativeName("CL_INTEL_ACCELERATOR_EXTENSION_NAME")] - public static ReadOnlySpan IntelAcceleratorExtensionName => "cl_intel_accelerator"u8; + public static Utf8String IntelAcceleratorExtensionName => "cl_intel_accelerator"u8; [NativeName("CL_INTEL_ACCELERATOR_EXTENSION_VERSION")] public const int IntelAcceleratorExtensionVersion = ( @@ -27548,8 +27539,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_MOTION_ESTIMATION_EXTENSION_NAME")] - public static ReadOnlySpan IntelMotionEstimationExtensionName => - "cl_intel_motion_estimation"u8; + public static Utf8String IntelMotionEstimationExtensionName => "cl_intel_motion_estimation"u8; [NativeName("CL_INTEL_MOTION_ESTIMATION_EXTENSION_VERSION")] public const int IntelMotionEstimationExtensionVersion = ( @@ -27559,7 +27549,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_ADVANCED_MOTION_ESTIMATION_EXTENSION_NAME")] - public static ReadOnlySpan IntelAdvancedMotionEstimationExtensionName => + public static Utf8String IntelAdvancedMotionEstimationExtensionName => "cl_intel_advanced_motion_estimation"u8; [NativeName("CL_INTEL_ADVANCED_MOTION_ESTIMATION_EXTENSION_VERSION")] @@ -27570,7 +27560,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_SIMULTANEOUS_SHARING_EXTENSION_NAME")] - public static ReadOnlySpan IntelSimultaneousSharingExtensionName => + public static Utf8String IntelSimultaneousSharingExtensionName => "cl_intel_simultaneous_sharing"u8; [NativeName("CL_INTEL_SIMULTANEOUS_SHARING_EXTENSION_VERSION")] @@ -27581,7 +27571,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_EGL_IMAGE_YUV_EXTENSION_NAME")] - public static ReadOnlySpan IntelEglImageYuvExtensionName => "cl_intel_egl_image_yuv"u8; + public static Utf8String IntelEglImageYuvExtensionName => "cl_intel_egl_image_yuv"u8; [NativeName("CL_INTEL_EGL_IMAGE_YUV_EXTENSION_VERSION")] public const int IntelEglImageYuvExtensionVersion = ( @@ -27591,7 +27581,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_PACKED_YUV_EXTENSION_NAME")] - public static ReadOnlySpan IntelPackedYuvExtensionName => "cl_intel_packed_yuv"u8; + public static Utf8String IntelPackedYuvExtensionName => "cl_intel_packed_yuv"u8; [NativeName("CL_INTEL_PACKED_YUV_EXTENSION_VERSION")] public const int IntelPackedYuvExtensionVersion = ( @@ -27601,7 +27591,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_REQUIRED_SUBGROUP_SIZE_EXTENSION_NAME")] - public static ReadOnlySpan IntelRequiredSubgroupSizeExtensionName => + public static Utf8String IntelRequiredSubgroupSizeExtensionName => "cl_intel_required_subgroup_size"u8; [NativeName("CL_INTEL_REQUIRED_SUBGROUP_SIZE_EXTENSION_VERSION")] @@ -27612,8 +27602,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_DRIVER_DIAGNOSTICS_EXTENSION_NAME")] - public static ReadOnlySpan IntelDriverDiagnosticsExtensionName => - "cl_intel_driver_diagnostics"u8; + public static Utf8String IntelDriverDiagnosticsExtensionName => "cl_intel_driver_diagnostics"u8; [NativeName("CL_INTEL_DRIVER_DIAGNOSTICS_EXTENSION_VERSION")] public const int IntelDriverDiagnosticsExtensionVersion = ( @@ -27623,7 +27612,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_PLANAR_YUV_EXTENSION_NAME")] - public static ReadOnlySpan IntelPlanarYuvExtensionName => "cl_intel_planar_yuv"u8; + public static Utf8String IntelPlanarYuvExtensionName => "cl_intel_planar_yuv"u8; [NativeName("CL_INTEL_PLANAR_YUV_EXTENSION_VERSION")] public const int IntelPlanarYuvExtensionVersion = ( @@ -27633,7 +27622,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_DEVICE_SIDE_AVC_MOTION_ESTIMATION_EXTENSION_NAME")] - public static ReadOnlySpan IntelDeviceSideAvcMotionEstimationExtensionName => + public static Utf8String IntelDeviceSideAvcMotionEstimationExtensionName => "cl_intel_device_side_avc_motion_estimation"u8; [NativeName("CL_INTEL_DEVICE_SIDE_AVC_MOTION_ESTIMATION_EXTENSION_VERSION")] @@ -27644,7 +27633,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan IntelUnifiedSharedMemoryExtensionName => + public static Utf8String IntelUnifiedSharedMemoryExtensionName => "cl_intel_unified_shared_memory"u8; [NativeName("CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_VERSION")] @@ -27655,7 +27644,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_MEM_ALLOC_BUFFER_LOCATION_EXTENSION_NAME")] - public static ReadOnlySpan IntelMemAllocBufferLocationExtensionName => + public static Utf8String IntelMemAllocBufferLocationExtensionName => "cl_intel_mem_alloc_buffer_location"u8; [NativeName("CL_INTEL_MEM_ALLOC_BUFFER_LOCATION_EXTENSION_VERSION")] @@ -27666,7 +27655,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_CREATE_BUFFER_WITH_PROPERTIES_EXTENSION_NAME")] - public static ReadOnlySpan IntelCreateBufferWithPropertiesExtensionName => + public static Utf8String IntelCreateBufferWithPropertiesExtensionName => "cl_intel_create_buffer_with_properties"u8; [NativeName("CL_INTEL_CREATE_BUFFER_WITH_PROPERTIES_EXTENSION_VERSION")] @@ -27677,7 +27666,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_PROGRAM_SCOPE_HOST_PIPE_EXTENSION_NAME")] - public static ReadOnlySpan IntelProgramScopeHostPipeExtensionName => + public static Utf8String IntelProgramScopeHostPipeExtensionName => "cl_intel_program_scope_host_pipe"u8; [NativeName("CL_INTEL_PROGRAM_SCOPE_HOST_PIPE_EXTENSION_VERSION")] @@ -27688,7 +27677,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_MEM_CHANNEL_PROPERTY_EXTENSION_NAME")] - public static ReadOnlySpan IntelMemChannelPropertyExtensionName => + public static Utf8String IntelMemChannelPropertyExtensionName => "cl_intel_mem_channel_property"u8; [NativeName("CL_INTEL_MEM_CHANNEL_PROPERTY_EXTENSION_VERSION")] @@ -27699,7 +27688,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_MEM_FORCE_HOST_MEMORY_EXTENSION_NAME")] - public static ReadOnlySpan IntelMemForceHostMemoryExtensionName => + public static Utf8String IntelMemForceHostMemoryExtensionName => "cl_intel_mem_force_host_memory"u8; [NativeName("CL_INTEL_MEM_FORCE_HOST_MEMORY_EXTENSION_VERSION")] @@ -27710,7 +27699,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_COMMAND_QUEUE_FAMILIES_EXTENSION_NAME")] - public static ReadOnlySpan IntelCommandQueueFamiliesExtensionName => + public static Utf8String IntelCommandQueueFamiliesExtensionName => "cl_intel_command_queue_families"u8; [NativeName("CL_INTEL_COMMAND_QUEUE_FAMILIES_EXTENSION_VERSION")] @@ -27729,7 +27718,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) public const int QueueDefaultCapabilitiesINTEL = 0; [NativeName("CL_INTEL_QUEUE_NO_SYNC_OPERATIONS_EXTENSION_NAME")] - public static ReadOnlySpan IntelQueueNoSyncOperationsExtensionName => + public static Utf8String IntelQueueNoSyncOperationsExtensionName => "cl_intel_queue_no_sync_operations"u8; [NativeName("CL_INTEL_QUEUE_NO_SYNC_OPERATIONS_EXTENSION_VERSION")] @@ -27740,7 +27729,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_SHARING_FORMAT_QUERY_EXTENSION_NAME")] - public static ReadOnlySpan IntelSharingFormatQueryExtensionName => + public static Utf8String IntelSharingFormatQueryExtensionName => "cl_intel_sharing_format_query"u8; [NativeName("CL_INTEL_SHARING_FORMAT_QUERY_EXTENSION_VERSION")] @@ -27751,7 +27740,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMAGE_REQUIREMENTS_INFO_EXTENSION_NAME")] - public static ReadOnlySpan ExtImageRequirementsInfoExtensionName => + public static Utf8String ExtImageRequirementsInfoExtensionName => "cl_ext_image_requirements_info"u8; [NativeName("CL_EXT_IMAGE_REQUIREMENTS_INFO_EXTENSION_VERSION")] @@ -27762,8 +27751,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMAGE_FROM_BUFFER_EXTENSION_NAME")] - public static ReadOnlySpan ExtImageFromBufferExtensionName => - "cl_ext_image_from_buffer"u8; + public static Utf8String ExtImageFromBufferExtensionName => "cl_ext_image_from_buffer"u8; [NativeName("CL_EXT_IMAGE_FROM_BUFFER_EXTENSION_VERSION")] public const int ExtImageFromBufferExtensionVersion = ( @@ -27773,7 +27761,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_LOADER_INFO_EXTENSION_NAME")] - public static ReadOnlySpan LoaderInfoExtensionName => "cl_loader_info"u8; + public static Utf8String LoaderInfoExtensionName => "cl_loader_info"u8; [NativeName("CL_LOADER_INFO_EXTENSION_VERSION")] public const int LoaderInfoExtensionVersion = ( @@ -27783,7 +27771,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_DEPTH_IMAGES_EXTENSION_NAME")] - public static ReadOnlySpan KhrDepthImagesExtensionName => "cl_khr_depth_images"u8; + public static Utf8String KhrDepthImagesExtensionName => "cl_khr_depth_images"u8; [NativeName("CL_KHR_DEPTH_IMAGES_EXTENSION_VERSION")] public const int KhrDepthImagesExtensionVersion = ( @@ -27793,7 +27781,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_FLOAT_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan ExtFloatAtomicsExtensionName => "cl_ext_float_atomics"u8; + public static Utf8String ExtFloatAtomicsExtensionName => "cl_ext_float_atomics"u8; [NativeName("CL_EXT_FLOAT_ATOMICS_EXTENSION_VERSION")] public const int ExtFloatAtomicsExtensionVersion = ( @@ -27803,7 +27791,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_CREATE_MEM_OBJECT_PROPERTIES_EXTENSION_NAME")] - public static ReadOnlySpan IntelCreateMemObjectPropertiesExtensionName => + public static Utf8String IntelCreateMemObjectPropertiesExtensionName => "cl_intel_create_mem_object_properties"u8; [NativeName("CL_INTEL_CREATE_MEM_OBJECT_PROPERTIES_EXTENSION_VERSION")] @@ -27814,7 +27802,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_POCL_CONTENT_SIZE_EXTENSION_NAME")] - public static ReadOnlySpan PoclContentSizeExtensionName => "cl_pocl_content_size"u8; + public static Utf8String PoclContentSizeExtensionName => "cl_pocl_content_size"u8; [NativeName("CL_POCL_CONTENT_SIZE_EXTENSION_VERSION")] public const int PoclContentSizeExtensionVersion = ( @@ -27824,8 +27812,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMAGE_RAW10_RAW12_EXTENSION_NAME")] - public static ReadOnlySpan ExtImageRaw10Raw12ExtensionName => - "cl_ext_image_raw10_raw12"u8; + public static Utf8String ExtImageRaw10Raw12ExtensionName => "cl_ext_image_raw10_raw12"u8; [NativeName("CL_EXT_IMAGE_RAW10_RAW12_EXTENSION_VERSION")] public const int ExtImageRaw10Raw12ExtensionVersion = ( @@ -27835,7 +27822,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_3D_IMAGE_WRITES_EXTENSION_NAME")] - public static ReadOnlySpan Khr3DImageWritesExtensionName => "cl_khr_3d_image_writes"u8; + public static Utf8String Khr3DImageWritesExtensionName => "cl_khr_3d_image_writes"u8; [NativeName("CL_KHR_3D_IMAGE_WRITES_EXTENSION_VERSION")] public const int Khr3DImageWritesExtensionVersion = ( @@ -27845,7 +27832,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_ASYNC_WORK_GROUP_COPY_FENCE_EXTENSION_NAME")] - public static ReadOnlySpan KhrAsyncWorkGroupCopyFenceExtensionName => + public static Utf8String KhrAsyncWorkGroupCopyFenceExtensionName => "cl_khr_async_work_group_copy_fence"u8; [NativeName("CL_KHR_ASYNC_WORK_GROUP_COPY_FENCE_EXTENSION_VERSION")] @@ -27856,7 +27843,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_BYTE_ADDRESSABLE_STORE_EXTENSION_NAME")] - public static ReadOnlySpan KhrByteAddressableStoreExtensionName => + public static Utf8String KhrByteAddressableStoreExtensionName => "cl_khr_byte_addressable_store"u8; [NativeName("CL_KHR_BYTE_ADDRESSABLE_STORE_EXTENSION_VERSION")] @@ -27867,7 +27854,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_DEVICE_ENQUEUE_LOCAL_ARG_TYPES_EXTENSION_NAME")] - public static ReadOnlySpan KhrDeviceEnqueueLocalArgTypesExtensionName => + public static Utf8String KhrDeviceEnqueueLocalArgTypesExtensionName => "cl_khr_device_enqueue_local_arg_types"u8; [NativeName("CL_KHR_DEVICE_ENQUEUE_LOCAL_ARG_TYPES_EXTENSION_VERSION")] @@ -27878,7 +27865,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXPECT_ASSUME_EXTENSION_NAME")] - public static ReadOnlySpan KhrExpectAssumeExtensionName => "cl_khr_expect_assume"u8; + public static Utf8String KhrExpectAssumeExtensionName => "cl_khr_expect_assume"u8; [NativeName("CL_KHR_EXPECT_ASSUME_EXTENSION_VERSION")] public const int KhrExpectAssumeExtensionVersion = ( @@ -27888,7 +27875,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTENDED_ASYNC_COPIES_EXTENSION_NAME")] - public static ReadOnlySpan KhrExtendedAsyncCopiesExtensionName => + public static Utf8String KhrExtendedAsyncCopiesExtensionName => "cl_khr_extended_async_copies"u8; [NativeName("CL_KHR_EXTENDED_ASYNC_COPIES_EXTENSION_VERSION")] @@ -27899,7 +27886,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_EXTENDED_BIT_OPS_EXTENSION_NAME")] - public static ReadOnlySpan KhrExtendedBitOpsExtensionName => "cl_khr_extended_bit_ops"u8; + public static Utf8String KhrExtendedBitOpsExtensionName => "cl_khr_extended_bit_ops"u8; [NativeName("CL_KHR_EXTENDED_BIT_OPS_EXTENSION_VERSION")] public const int KhrExtendedBitOpsExtensionVersion = ( @@ -27909,7 +27896,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_GLOBAL_INT32_BASE_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrGlobalInt32BaseAtomicsExtensionName => + public static Utf8String KhrGlobalInt32BaseAtomicsExtensionName => "cl_khr_global_int32_base_atomics"u8; [NativeName("CL_KHR_GLOBAL_INT32_BASE_ATOMICS_EXTENSION_VERSION")] @@ -27920,7 +27907,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_GLOBAL_INT32_EXTENDED_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrGlobalInt32ExtendedAtomicsExtensionName => + public static Utf8String KhrGlobalInt32ExtendedAtomicsExtensionName => "cl_khr_global_int32_extended_atomics"u8; [NativeName("CL_KHR_GLOBAL_INT32_EXTENDED_ATOMICS_EXTENSION_VERSION")] @@ -27931,8 +27918,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_INT64_BASE_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrInt64BaseAtomicsExtensionName => - "cl_khr_int64_base_atomics"u8; + public static Utf8String KhrInt64BaseAtomicsExtensionName => "cl_khr_int64_base_atomics"u8; [NativeName("CL_KHR_INT64_BASE_ATOMICS_EXTENSION_VERSION")] public const int KhrInt64BaseAtomicsExtensionVersion = ( @@ -27942,7 +27928,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_INT64_EXTENDED_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrInt64ExtendedAtomicsExtensionName => + public static Utf8String KhrInt64ExtendedAtomicsExtensionName => "cl_khr_int64_extended_atomics"u8; [NativeName("CL_KHR_INT64_EXTENDED_ATOMICS_EXTENSION_VERSION")] @@ -27953,7 +27939,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_KERNEL_CLOCK_EXTENSION_NAME")] - public static ReadOnlySpan KhrKernelClockExtensionName => "cl_khr_kernel_clock"u8; + public static Utf8String KhrKernelClockExtensionName => "cl_khr_kernel_clock"u8; [NativeName("CL_KHR_KERNEL_CLOCK_EXTENSION_VERSION")] public const int KhrKernelClockExtensionVersion = ( @@ -27963,7 +27949,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_LOCAL_INT32_BASE_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrLocalInt32BaseAtomicsExtensionName => + public static Utf8String KhrLocalInt32BaseAtomicsExtensionName => "cl_khr_local_int32_base_atomics"u8; [NativeName("CL_KHR_LOCAL_INT32_BASE_ATOMICS_EXTENSION_VERSION")] @@ -27974,7 +27960,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_LOCAL_INT32_EXTENDED_ATOMICS_EXTENSION_NAME")] - public static ReadOnlySpan KhrLocalInt32ExtendedAtomicsExtensionName => + public static Utf8String KhrLocalInt32ExtendedAtomicsExtensionName => "cl_khr_local_int32_extended_atomics"u8; [NativeName("CL_KHR_LOCAL_INT32_EXTENDED_ATOMICS_EXTENSION_VERSION")] @@ -27985,8 +27971,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_MIPMAP_IMAGE_WRITES_EXTENSION_NAME")] - public static ReadOnlySpan KhrMipmapImageWritesExtensionName => - "cl_khr_mipmap_image_writes"u8; + public static Utf8String KhrMipmapImageWritesExtensionName => "cl_khr_mipmap_image_writes"u8; [NativeName("CL_KHR_MIPMAP_IMAGE_WRITES_EXTENSION_VERSION")] public const int KhrMipmapImageWritesExtensionVersion = ( @@ -27996,7 +27981,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SELECT_FPROUNDING_MODE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSelectFproundingModeExtensionName => + public static Utf8String KhrSelectFproundingModeExtensionName => "cl_khr_select_fprounding_mode"u8; [NativeName("CL_KHR_SELECT_FPROUNDING_MODE_EXTENSION_VERSION")] @@ -28007,7 +27992,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SPIRV_EXTENDED_DEBUG_INFO_EXTENSION_NAME")] - public static ReadOnlySpan KhrSpirvExtendedDebugInfoExtensionName => + public static Utf8String KhrSpirvExtendedDebugInfoExtensionName => "cl_khr_spirv_extended_debug_info"u8; [NativeName("CL_KHR_SPIRV_EXTENDED_DEBUG_INFO_EXTENSION_VERSION")] @@ -28018,8 +28003,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SPIRV_LINKONCE_ODR_EXTENSION_NAME")] - public static ReadOnlySpan KhrSpirvLinkonceOdrExtensionName => - "cl_khr_spirv_linkonce_odr"u8; + public static Utf8String KhrSpirvLinkonceOdrExtensionName => "cl_khr_spirv_linkonce_odr"u8; [NativeName("CL_KHR_SPIRV_LINKONCE_ODR_EXTENSION_VERSION")] public const int KhrSpirvLinkonceOdrExtensionVersion = ( @@ -28029,7 +28013,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_NAME")] - public static ReadOnlySpan KhrSpirvNoIntegerWrapDecorationExtensionName => + public static Utf8String KhrSpirvNoIntegerWrapDecorationExtensionName => "cl_khr_spirv_no_integer_wrap_decoration"u8; [NativeName("CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_VERSION")] @@ -28040,7 +28024,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SPIRV_QUERIES_EXTENSION_NAME")] - public static ReadOnlySpan KhrSpirvQueriesExtensionName => "cl_khr_spirv_queries"u8; + public static Utf8String KhrSpirvQueriesExtensionName => "cl_khr_spirv_queries"u8; [NativeName("CL_KHR_SPIRV_QUERIES_EXTENSION_VERSION")] public const int KhrSpirvQueriesExtensionVersion = ( @@ -28050,8 +28034,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SRGB_IMAGE_WRITES_EXTENSION_NAME")] - public static ReadOnlySpan KhrSrgbImageWritesExtensionName => - "cl_khr_srgb_image_writes"u8; + public static Utf8String KhrSrgbImageWritesExtensionName => "cl_khr_srgb_image_writes"u8; [NativeName("CL_KHR_SRGB_IMAGE_WRITES_EXTENSION_VERSION")] public const int KhrSrgbImageWritesExtensionVersion = ( @@ -28061,7 +28044,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_BALLOT_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupBallotExtensionName => "cl_khr_subgroup_ballot"u8; + public static Utf8String KhrSubgroupBallotExtensionName => "cl_khr_subgroup_ballot"u8; [NativeName("CL_KHR_SUBGROUP_BALLOT_EXTENSION_VERSION")] public const int KhrSubgroupBallotExtensionVersion = ( @@ -28071,7 +28054,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_CLUSTERED_REDUCE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupClusteredReduceExtensionName => + public static Utf8String KhrSubgroupClusteredReduceExtensionName => "cl_khr_subgroup_clustered_reduce"u8; [NativeName("CL_KHR_SUBGROUP_CLUSTERED_REDUCE_EXTENSION_VERSION")] @@ -28082,7 +28065,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_EXTENDED_TYPES_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupExtendedTypesExtensionName => + public static Utf8String KhrSubgroupExtendedTypesExtensionName => "cl_khr_subgroup_extended_types"u8; [NativeName("CL_KHR_SUBGROUP_EXTENDED_TYPES_EXTENSION_VERSION")] @@ -28093,7 +28076,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_NON_UNIFORM_ARITHMETIC_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupNonUniformArithmeticExtensionName => + public static Utf8String KhrSubgroupNonUniformArithmeticExtensionName => "cl_khr_subgroup_non_uniform_arithmetic"u8; [NativeName("CL_KHR_SUBGROUP_NON_UNIFORM_ARITHMETIC_EXTENSION_VERSION")] @@ -28104,7 +28087,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_NON_UNIFORM_VOTE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupNonUniformVoteExtensionName => + public static Utf8String KhrSubgroupNonUniformVoteExtensionName => "cl_khr_subgroup_non_uniform_vote"u8; [NativeName("CL_KHR_SUBGROUP_NON_UNIFORM_VOTE_EXTENSION_VERSION")] @@ -28115,7 +28098,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_ROTATE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupRotateExtensionName => "cl_khr_subgroup_rotate"u8; + public static Utf8String KhrSubgroupRotateExtensionName => "cl_khr_subgroup_rotate"u8; [NativeName("CL_KHR_SUBGROUP_ROTATE_EXTENSION_VERSION")] public const int KhrSubgroupRotateExtensionVersion = ( @@ -28125,7 +28108,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_SHUFFLE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupShuffleExtensionName => "cl_khr_subgroup_shuffle"u8; + public static Utf8String KhrSubgroupShuffleExtensionName => "cl_khr_subgroup_shuffle"u8; [NativeName("CL_KHR_SUBGROUP_SHUFFLE_EXTENSION_VERSION")] public const int KhrSubgroupShuffleExtensionVersion = ( @@ -28135,7 +28118,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_SUBGROUP_SHUFFLE_RELATIVE_EXTENSION_NAME")] - public static ReadOnlySpan KhrSubgroupShuffleRelativeExtensionName => + public static Utf8String KhrSubgroupShuffleRelativeExtensionName => "cl_khr_subgroup_shuffle_relative"u8; [NativeName("CL_KHR_SUBGROUP_SHUFFLE_RELATIVE_EXTENSION_VERSION")] @@ -28146,7 +28129,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_KHR_WORK_GROUP_UNIFORM_ARITHMETIC_EXTENSION_NAME")] - public static ReadOnlySpan KhrWorkGroupUniformArithmeticExtensionName => + public static Utf8String KhrWorkGroupUniformArithmeticExtensionName => "cl_khr_work_group_uniform_arithmetic"u8; [NativeName("CL_KHR_WORK_GROUP_UNIFORM_ARITHMETIC_EXTENSION_VERSION")] @@ -28157,7 +28140,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME")] - public static ReadOnlySpan ExtBufferDeviceAddressExtensionName => + public static Utf8String ExtBufferDeviceAddressExtensionName => "cl_ext_buffer_device_address"u8; [NativeName("CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_VERSION")] @@ -28168,7 +28151,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMAGE_UNORM_INT_2_101010_EXTENSION_NAME")] - public static ReadOnlySpan ExtImageUnormInt2x101010ExtensionName => + public static Utf8String ExtImageUnormInt2x101010ExtensionName => "cl_ext_image_unorm_int_2_101010"u8; [NativeName("CL_EXT_IMAGE_UNORM_INT_2_101010_EXTENSION_VERSION")] @@ -28179,7 +28162,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_NAME")] - public static ReadOnlySpan ExtImageUnsigned10x6x12x4x14x2ExtensionName => + public static Utf8String ExtImageUnsigned10x6x12x4x14x2ExtensionName => "cl_ext_image_unsigned_10x6_12x4_14x2"u8; [NativeName("CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_VERSION")] @@ -28190,7 +28173,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_NAME")] - public static ReadOnlySpan ExtImmutableMemoryObjectsExtensionName => + public static Utf8String ExtImmutableMemoryObjectsExtensionName => "cl_ext_immutable_memory_objects"u8; [NativeName("CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_VERSION")] @@ -28201,7 +28184,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_CANCEL_COMMAND_EXTENSION_NAME")] - public static ReadOnlySpan ImgCancelCommandExtensionName => "cl_img_cancel_command"u8; + public static Utf8String ImgCancelCommandExtensionName => "cl_img_cancel_command"u8; [NativeName("CL_IMG_CANCEL_COMMAND_EXTENSION_VERSION")] public const int ImgCancelCommandExtensionVersion = ( @@ -28211,8 +28194,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_IMG_SAFETY_MECHANISMS_EXTENSION_NAME")] - public static ReadOnlySpan ImgSafetyMechanismsExtensionName => - "cl_img_safety_mechanisms"u8; + public static Utf8String ImgSafetyMechanismsExtensionName => "cl_img_safety_mechanisms"u8; [NativeName("CL_IMG_SAFETY_MECHANISMS_EXTENSION_VERSION")] public const int ImgSafetyMechanismsExtensionVersion = ( @@ -28222,7 +28204,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_INTEL_KERNEL_ALLOCATIONS_INFO_EXTENSION_NAME")] - public static ReadOnlySpan IntelKernelAllocationsInfoExtensionName => + public static Utf8String IntelKernelAllocationsInfoExtensionName => "cl_intel_kernel_allocations_info"u8; [NativeName("CL_INTEL_KERNEL_ALLOCATIONS_INFO_EXTENSION_VERSION")] @@ -28233,7 +28215,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_QCOM_PERF_HINT_EXTENSION_NAME")] - public static ReadOnlySpan QcomPerfHintExtensionName => "cl_qcom_perf_hint"u8; + public static Utf8String QcomPerfHintExtensionName => "cl_qcom_perf_hint"u8; [NativeName("CL_QCOM_PERF_HINT_EXTENSION_VERSION")] public const int QcomPerfHintExtensionVersion = ( @@ -28243,7 +28225,7 @@ public static int WaitForEvents(uint num_events, Ref event_list) ); [NativeName("CL_LOADER_LAYERS_EXTENSION_NAME")] - public static ReadOnlySpan LoaderLayersExtensionName => "cl_loader_layers"u8; + public static Utf8String LoaderLayersExtensionName => "cl_loader_layers"u8; [NativeName("CL_LOADER_LAYERS_EXTENSION_VERSION")] public const int LoaderLayersExtensionVersion = ( diff --git a/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationProperties.gen.cs b/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationProperties.gen.cs index 32eb7661be..f49775bf10 100644 --- a/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationProperties.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -12,20 +13,20 @@ namespace Silk.NET.OpenCL; public partial struct DeviceIntegerDotProductAccelerationProperties { [NativeName("signed_accelerated")] - public uint SignedAccelerated; + public MaybeBool SignedAccelerated; [NativeName("unsigned_accelerated")] - public uint UnsignedAccelerated; + public MaybeBool UnsignedAccelerated; [NativeName("mixed_signedness_accelerated")] - public uint MixedSignednessAccelerated; + public MaybeBool MixedSignednessAccelerated; [NativeName("accumulating_saturating_signed_accelerated")] - public uint AccumulatingSaturatingSignedAccelerated; + public MaybeBool AccumulatingSaturatingSignedAccelerated; [NativeName("accumulating_saturating_unsigned_accelerated")] - public uint AccumulatingSaturatingUnsignedAccelerated; + public MaybeBool AccumulatingSaturatingUnsignedAccelerated; [NativeName("accumulating_saturating_mixed_signedness_accelerated")] - public uint AccumulatingSaturatingMixedSignednessAccelerated; + public MaybeBool AccumulatingSaturatingMixedSignednessAccelerated; } diff --git a/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationPropertiesKHR.gen.cs b/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationPropertiesKHR.gen.cs index bd5e02aae6..464525ff03 100644 --- a/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationPropertiesKHR.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/DeviceIntegerDotProductAccelerationPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -12,20 +13,20 @@ namespace Silk.NET.OpenCL; public partial struct DeviceIntegerDotProductAccelerationPropertiesKHR { [NativeName("signed_accelerated")] - public uint SignedAccelerated; + public MaybeBool SignedAccelerated; [NativeName("unsigned_accelerated")] - public uint UnsignedAccelerated; + public MaybeBool UnsignedAccelerated; [NativeName("mixed_signedness_accelerated")] - public uint MixedSignednessAccelerated; + public MaybeBool MixedSignednessAccelerated; [NativeName("accumulating_saturating_signed_accelerated")] - public uint AccumulatingSaturatingSignedAccelerated; + public MaybeBool AccumulatingSaturatingSignedAccelerated; [NativeName("accumulating_saturating_unsigned_accelerated")] - public uint AccumulatingSaturatingUnsignedAccelerated; + public MaybeBool AccumulatingSaturatingUnsignedAccelerated; [NativeName("accumulating_saturating_mixed_signedness_accelerated")] - public uint AccumulatingSaturatingMixedSignednessAccelerated; + public MaybeBool AccumulatingSaturatingMixedSignednessAccelerated; } diff --git a/sources/OpenCL/OpenCL/OpenCL/DevicePciBusInfoKHR.gen.cs b/sources/OpenCL/OpenCL/OpenCL/DevicePciBusInfoKHR.gen.cs index befbd6b2c6..6de15f94e4 100644 --- a/sources/OpenCL/OpenCL/OpenCL/DevicePciBusInfoKHR.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/DevicePciBusInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/ICl.gen.cs b/sources/OpenCL/OpenCL/OpenCL/ICl.gen.cs index eb97ae97da..db0b18e5c4 100644 --- a/sources/OpenCL/OpenCL/OpenCL/ICl.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/ICl.gen.cs @@ -4,8 +4,10 @@ // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. using System; using System.Diagnostics.CodeAnalysis; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenCL; diff --git a/sources/OpenCL/OpenCL/OpenCL/ImageDesc.gen.cs b/sources/OpenCL/OpenCL/OpenCL/ImageDesc.gen.cs index d817688085..b343c876d1 100644 --- a/sources/OpenCL/OpenCL/OpenCL/ImageDesc.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/ImageDesc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/ImageFormat.gen.cs b/sources/OpenCL/OpenCL/OpenCL/ImageFormat.gen.cs index 9d1e48c8e8..f078c2222a 100644 --- a/sources/OpenCL/OpenCL/OpenCL/ImageFormat.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/ImageFormat.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/KernelAllocationInfoINTEL.gen.cs b/sources/OpenCL/OpenCL/OpenCL/KernelAllocationInfoINTEL.gen.cs index 5383565c86..041d722950 100644 --- a/sources/OpenCL/OpenCL/OpenCL/KernelAllocationInfoINTEL.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/KernelAllocationInfoINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/MemAndroidNativeBufferHostPtr.gen.cs b/sources/OpenCL/OpenCL/OpenCL/MemAndroidNativeBufferHostPtr.gen.cs index 5b21b5f701..c35f4474d5 100644 --- a/sources/OpenCL/OpenCL/OpenCL/MemAndroidNativeBufferHostPtr.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/MemAndroidNativeBufferHostPtr.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/MemExtHostPtr.gen.cs b/sources/OpenCL/OpenCL/OpenCL/MemExtHostPtr.gen.cs index fe128e3b5a..f07d7f3e4c 100644 --- a/sources/OpenCL/OpenCL/OpenCL/MemExtHostPtr.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/MemExtHostPtr.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/MemIonHostPtr.gen.cs b/sources/OpenCL/OpenCL/OpenCL/MemIonHostPtr.gen.cs index 734a86b178..58b1263e5a 100644 --- a/sources/OpenCL/OpenCL/OpenCL/MemIonHostPtr.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/MemIonHostPtr.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/MotionEstimationDescINTEL.gen.cs b/sources/OpenCL/OpenCL/OpenCL/MotionEstimationDescINTEL.gen.cs index fc4eb4d390..7eaa16d383 100644 --- a/sources/OpenCL/OpenCL/OpenCL/MotionEstimationDescINTEL.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/MotionEstimationDescINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/NameVersion.gen.cs b/sources/OpenCL/OpenCL/OpenCL/NameVersion.gen.cs index dbe0b25338..5cf705e97c 100644 --- a/sources/OpenCL/OpenCL/OpenCL/NameVersion.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/NameVersion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/NameVersionKHR.gen.cs b/sources/OpenCL/OpenCL/OpenCL/NameVersionKHR.gen.cs index f4ddac74cd..960cc1c60e 100644 --- a/sources/OpenCL/OpenCL/OpenCL/NameVersionKHR.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/NameVersionKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenCL/OpenCL/OpenCL/QueueFamilyPropertiesINTEL.gen.cs b/sources/OpenCL/OpenCL/OpenCL/QueueFamilyPropertiesINTEL.gen.cs index 89a86c0264..4898f7e9a0 100644 --- a/sources/OpenCL/OpenCL/OpenCL/QueueFamilyPropertiesINTEL.gen.cs +++ b/sources/OpenCL/OpenCL/OpenCL/QueueFamilyPropertiesINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenCL headers and corresponding dependencies. // Original source is Copyright 2013-2026 The Khronos Group Inc. Licensed under the Apache 2.0 license. +using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/OpenGL/OpenGL/gl/GL.gen.cs b/sources/OpenGL/OpenGL/gl/GL.gen.cs index 2acb87dd9f..1f2b796264 100644 --- a/sources/OpenGL/OpenGL/gl/GL.gen.cs +++ b/sources/OpenGL/OpenGL/gl/GL.gen.cs @@ -2,8 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenGL headers and corresponding dependencies. // Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license. +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenGL; diff --git a/sources/OpenGL/OpenGL/gl/IGL.gen.cs b/sources/OpenGL/OpenGL/gl/IGL.gen.cs index fc896947a1..9408e36b07 100644 --- a/sources/OpenGL/OpenGL/gl/IGL.gen.cs +++ b/sources/OpenGL/OpenGL/gl/IGL.gen.cs @@ -2,8 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenGL headers and corresponding dependencies. // Original source is Copyright 2013-2020 The Khronos Group Inc. Licensed under the MIT license. +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenGL; diff --git a/sources/OpenXR/OpenXR/OpenXR/ActionStatePose.gen.cs b/sources/OpenXR/OpenXR/OpenXR/ActionStatePose.gen.cs index 8fa65d3718..9a900eaa92 100644 --- a/sources/OpenXR/OpenXR/OpenXR/ActionStatePose.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/ActionStatePose.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/IXr.gen.cs b/sources/OpenXR/OpenXR/OpenXR/IXr.gen.cs index 36a9a74981..d6a4c9f409 100644 --- a/sources/OpenXR/OpenXR/OpenXR/IXr.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/IXr.gen.cs @@ -3,8 +3,10 @@ // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/RoomMeshFaceIndicesMETA.gen.cs b/sources/OpenXR/OpenXR/OpenXR/RoomMeshFaceIndicesMETA.gen.cs index 5baef96b32..38226482a6 100644 --- a/sources/OpenXR/OpenXR/OpenXR/RoomMeshFaceIndicesMETA.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/RoomMeshFaceIndicesMETA.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/SenseDataQueryCompletionBD.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SenseDataQueryCompletionBD.gen.cs index 46edc56cf3..a00c8f9f9a 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SenseDataQueryCompletionBD.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SenseDataQueryCompletionBD.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.OpenXR; [NativeName("XrSenseDataQueryCompletionBD")] diff --git a/sources/OpenXR/OpenXR/OpenXR/SpaceFilterUuidMETA.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SpaceFilterUuidMETA.gen.cs index 88fb7b971f..51b54559a3 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SpaceFilterUuidMETA.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SpaceFilterUuidMETA.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/SpatialAnchorsQueryCompletionML.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SpatialAnchorsQueryCompletionML.gen.cs index 35adecfb99..1155d00353 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SpatialAnchorsQueryCompletionML.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SpatialAnchorsQueryCompletionML.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.OpenXR; [NativeName("XrSpatialAnchorsQueryCompletionML")] diff --git a/sources/OpenXR/OpenXR/OpenXR/SpatialGraphNodeSpaceCreateInfoMSFT.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SpatialGraphNodeSpaceCreateInfoMSFT.gen.cs index 72b5ba1a53..bfcad87af5 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SpatialGraphNodeSpaceCreateInfoMSFT.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SpatialGraphNodeSpaceCreateInfoMSFT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/SwapchainCreateInfoFoveationFB.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SwapchainCreateInfoFoveationFB.gen.cs index eb4c4dff48..69cccb92ee 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SwapchainCreateInfoFoveationFB.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SwapchainCreateInfoFoveationFB.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/SystemPropertiesBodyTrackingFullBodyMETA.gen.cs b/sources/OpenXR/OpenXR/OpenXR/SystemPropertiesBodyTrackingFullBodyMETA.gen.cs index 93fb609049..00e1ae7bd0 100644 --- a/sources/OpenXR/OpenXR/OpenXR/SystemPropertiesBodyTrackingFullBodyMETA.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/SystemPropertiesBodyTrackingFullBodyMETA.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/TrackableImageANDROID.gen.cs b/sources/OpenXR/OpenXR/OpenXR/TrackableImageANDROID.gen.cs index 62a01f3c28..2841ec4a46 100644 --- a/sources/OpenXR/OpenXR/OpenXR/TrackableImageANDROID.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/TrackableImageANDROID.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.OpenXR; diff --git a/sources/OpenXR/OpenXR/OpenXR/Xr.gen.cs b/sources/OpenXR/OpenXR/OpenXR/Xr.gen.cs index 694a381486..ece6309823 100644 --- a/sources/OpenXR/OpenXR/OpenXR/Xr.gen.cs +++ b/sources/OpenXR/OpenXR/OpenXR/Xr.gen.cs @@ -3,8 +3,10 @@ // Ported from the OpenXR headers and corresponding dependencies. // Original source is Copyright 2017-2026 The Khronos Group Inc. Licensed under the MIT license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.OpenXR; diff --git a/sources/SDL/SDL/SDL3/AlignmentTest.gen.cs b/sources/SDL/SDL/SDL3/AlignmentTest.gen.cs index d393a4196b..bd682b3254 100644 --- a/sources/SDL/SDL/SDL3/AlignmentTest.gen.cs +++ b/sources/SDL/SDL/SDL3/AlignmentTest.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AppResult.gen.cs b/sources/SDL/SDL/SDL3/AppResult.gen.cs index fe89ebf8a1..0e93dec4aa 100644 --- a/sources/SDL/SDL/SDL3/AppResult.gen.cs +++ b/sources/SDL/SDL/SDL3/AppResult.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ArrayOrder.gen.cs b/sources/SDL/SDL/SDL3/ArrayOrder.gen.cs index 9a75cd3bd3..8014a30de5 100644 --- a/sources/SDL/SDL/SDL3/ArrayOrder.gen.cs +++ b/sources/SDL/SDL/SDL3/ArrayOrder.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AssertData.gen.cs b/sources/SDL/SDL/SDL3/AssertData.gen.cs index 78a3d8ea11..f848094588 100644 --- a/sources/SDL/SDL/SDL3/AssertData.gen.cs +++ b/sources/SDL/SDL/SDL3/AssertData.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AssertState.gen.cs b/sources/SDL/SDL/SDL3/AssertState.gen.cs index 948471eb6b..a594b6fb09 100644 --- a/sources/SDL/SDL/SDL3/AssertState.gen.cs +++ b/sources/SDL/SDL/SDL3/AssertState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AtomicInt.gen.cs b/sources/SDL/SDL/SDL3/AtomicInt.gen.cs index 73cc95cfa5..638c6bd96d 100644 --- a/sources/SDL/SDL/SDL3/AtomicInt.gen.cs +++ b/sources/SDL/SDL/SDL3/AtomicInt.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AtomicU32.gen.cs b/sources/SDL/SDL/SDL3/AtomicU32.gen.cs index 5bba2cfaa1..9b8a2854a8 100644 --- a/sources/SDL/SDL/SDL3/AtomicU32.gen.cs +++ b/sources/SDL/SDL/SDL3/AtomicU32.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs index 3a9ba3cbea..d161b79a94 100644 --- a/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/AudioDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AudioFormat.gen.cs b/sources/SDL/SDL/SDL3/AudioFormat.gen.cs index 115f9414aa..cbfcacaed8 100644 --- a/sources/SDL/SDL/SDL3/AudioFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/AudioFormat.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/AudioSpec.gen.cs b/sources/SDL/SDL/SDL3/AudioSpec.gen.cs index 651aa44f14..810bcf947e 100644 --- a/sources/SDL/SDL/SDL3/AudioSpec.gen.cs +++ b/sources/SDL/SDL/SDL3/AudioSpec.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/BlendFactor.gen.cs b/sources/SDL/SDL/SDL3/BlendFactor.gen.cs index 4d51518657..c4f4fe3fdd 100644 --- a/sources/SDL/SDL/SDL3/BlendFactor.gen.cs +++ b/sources/SDL/SDL/SDL3/BlendFactor.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_BlendFactor")] diff --git a/sources/SDL/SDL/SDL3/BlendOperation.gen.cs b/sources/SDL/SDL/SDL3/BlendOperation.gen.cs index bd7a801a39..c4897a5803 100644 --- a/sources/SDL/SDL/SDL3/BlendOperation.gen.cs +++ b/sources/SDL/SDL/SDL3/BlendOperation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs index ce425c2881..6d33d4daee 100644 --- a/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/CameraDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/CameraPosition.gen.cs b/sources/SDL/SDL/SDL3/CameraPosition.gen.cs index 5fdb6bdfed..f2d1e5dc18 100644 --- a/sources/SDL/SDL/SDL3/CameraPosition.gen.cs +++ b/sources/SDL/SDL/SDL3/CameraPosition.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/CameraSpec.gen.cs b/sources/SDL/SDL/SDL3/CameraSpec.gen.cs index 148c9c9407..7295e9fde7 100644 --- a/sources/SDL/SDL/SDL3/CameraSpec.gen.cs +++ b/sources/SDL/SDL/SDL3/CameraSpec.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Capitalization.gen.cs b/sources/SDL/SDL/SDL3/Capitalization.gen.cs index f5bc8d4ff2..dcf432b6a7 100644 --- a/sources/SDL/SDL/SDL3/Capitalization.gen.cs +++ b/sources/SDL/SDL/SDL3/Capitalization.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ChromaLocation.gen.cs b/sources/SDL/SDL/SDL3/ChromaLocation.gen.cs index 93cc60f729..a9ea13625f 100644 --- a/sources/SDL/SDL/SDL3/ChromaLocation.gen.cs +++ b/sources/SDL/SDL/SDL3/ChromaLocation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs index fcba12fb88..1ec913d890 100644 --- a/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/ClipboardEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Color.gen.cs b/sources/SDL/SDL/SDL3/Color.gen.cs index 09aaeb185c..27b9347470 100644 --- a/sources/SDL/SDL/SDL3/Color.gen.cs +++ b/sources/SDL/SDL/SDL3/Color.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ColorRange.gen.cs b/sources/SDL/SDL/SDL3/ColorRange.gen.cs index 6e781ce9f1..19818db4df 100644 --- a/sources/SDL/SDL/SDL3/ColorRange.gen.cs +++ b/sources/SDL/SDL/SDL3/ColorRange.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/CommonEvent.gen.cs b/sources/SDL/SDL/SDL3/CommonEvent.gen.cs index b5b3ec9caf..af13c3ede0 100644 --- a/sources/SDL/SDL/SDL3/CommonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/CommonEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs b/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs index 801e66226f..2c6d1c2dd3 100644 --- a/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DateTime.gen.cs b/sources/SDL/SDL/SDL3/DateTime.gen.cs index 830ea95d61..94380f25be 100644 --- a/sources/SDL/SDL/SDL3/DateTime.gen.cs +++ b/sources/SDL/SDL/SDL3/DateTime.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DialogFileFilter.gen.cs b/sources/SDL/SDL/SDL3/DialogFileFilter.gen.cs index ba12179341..e39cf41d28 100644 --- a/sources/SDL/SDL/SDL3/DialogFileFilter.gen.cs +++ b/sources/SDL/SDL/SDL3/DialogFileFilter.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs b/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs index 4fb25883e7..886d0a2a85 100644 --- a/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/DisplayEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DisplayMode.gen.cs b/sources/SDL/SDL/SDL3/DisplayMode.gen.cs index c71bc6236e..01c3bf6cc9 100644 --- a/sources/SDL/SDL/SDL3/DisplayMode.gen.cs +++ b/sources/SDL/SDL/SDL3/DisplayMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DisplayOrientation.gen.cs b/sources/SDL/SDL/SDL3/DisplayOrientation.gen.cs index d17057bfa9..8fd11fcbd1 100644 --- a/sources/SDL/SDL/SDL3/DisplayOrientation.gen.cs +++ b/sources/SDL/SDL/SDL3/DisplayOrientation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/DummyEnum.gen.cs b/sources/SDL/SDL/SDL3/DummyEnum.gen.cs index 89ed4f117b..f29ac005a9 100644 --- a/sources/SDL/SDL/SDL3/DummyEnum.gen.cs +++ b/sources/SDL/SDL/SDL3/DummyEnum.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs b/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs index ccf3b4b389..92defee791 100644 --- a/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs +++ b/sources/SDL/SDL/SDL3/EnumerationResult.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Event.gen.cs b/sources/SDL/SDL/SDL3/Event.gen.cs index 3c2d64455e..924f9899a6 100644 --- a/sources/SDL/SDL/SDL3/Event.gen.cs +++ b/sources/SDL/SDL/SDL3/Event.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/EventType.gen.cs b/sources/SDL/SDL/SDL3/EventType.gen.cs index 49bc076c61..1dd1236062 100644 --- a/sources/SDL/SDL/SDL3/EventType.gen.cs +++ b/sources/SDL/SDL/SDL3/EventType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FColor.gen.cs b/sources/SDL/SDL/SDL3/FColor.gen.cs index 4c8be797ee..582771f191 100644 --- a/sources/SDL/SDL/SDL3/FColor.gen.cs +++ b/sources/SDL/SDL/SDL3/FColor.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FPoint.gen.cs b/sources/SDL/SDL/SDL3/FPoint.gen.cs index f156546a5e..6e3c287214 100644 --- a/sources/SDL/SDL/SDL3/FPoint.gen.cs +++ b/sources/SDL/SDL/SDL3/FPoint.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FRect.gen.cs b/sources/SDL/SDL/SDL3/FRect.gen.cs index 6c27741d0e..50d8071fec 100644 --- a/sources/SDL/SDL/SDL3/FRect.gen.cs +++ b/sources/SDL/SDL/SDL3/FRect.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FileDialogType.gen.cs b/sources/SDL/SDL/SDL3/FileDialogType.gen.cs index 4ddf9bf083..fa269bf751 100644 --- a/sources/SDL/SDL/SDL3/FileDialogType.gen.cs +++ b/sources/SDL/SDL/SDL3/FileDialogType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Finger.gen.cs b/sources/SDL/SDL/SDL3/Finger.gen.cs index edd3bea5b3..62df37289a 100644 --- a/sources/SDL/SDL/SDL3/Finger.gen.cs +++ b/sources/SDL/SDL/SDL3/Finger.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FlashOperation.gen.cs b/sources/SDL/SDL/SDL3/FlashOperation.gen.cs index 2402b5af37..612b06169c 100644 --- a/sources/SDL/SDL/SDL3/FlashOperation.gen.cs +++ b/sources/SDL/SDL/SDL3/FlashOperation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/FlipMode.gen.cs b/sources/SDL/SDL/SDL3/FlipMode.gen.cs index 30554e2a80..d9c0c2d5f9 100644 --- a/sources/SDL/SDL/SDL3/FlipMode.gen.cs +++ b/sources/SDL/SDL/SDL3/FlipMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Folder.gen.cs b/sources/SDL/SDL/SDL3/Folder.gen.cs index b5181d09cd..5b5a5b6254 100644 --- a/sources/SDL/SDL/SDL3/Folder.gen.cs +++ b/sources/SDL/SDL/SDL3/Folder.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GLAttr.gen.cs b/sources/SDL/SDL/SDL3/GLAttr.gen.cs index 3fb9c2c838..059b995a87 100644 --- a/sources/SDL/SDL/SDL3/GLAttr.gen.cs +++ b/sources/SDL/SDL/SDL3/GLAttr.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs b/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs index 34d1e42d84..3aaf1a8323 100644 --- a/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadAxis.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/GamepadAxisEvent.gen.cs index 56c07e7c19..2a604cc927 100644 --- a/sources/SDL/SDL/SDL3/GamepadAxisEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadAxisEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs index ae2b9923dd..a6fff3f7aa 100644 --- a/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBinding.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadBindingType.gen.cs b/sources/SDL/SDL/SDL3/GamepadBindingType.gen.cs index cc74343755..f332580ffa 100644 --- a/sources/SDL/SDL/SDL3/GamepadBindingType.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadBindingType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs index 18b975422e..733341d2ed 100644 --- a/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadButtonEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadButtonLabel.gen.cs b/sources/SDL/SDL/SDL3/GamepadButtonLabel.gen.cs index 7c463ebfe0..8b7ffc7d9d 100644 --- a/sources/SDL/SDL/SDL3/GamepadButtonLabel.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadButtonLabel.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/GamepadDeviceEvent.gen.cs index cc52f049a7..e0819c936e 100644 --- a/sources/SDL/SDL/SDL3/GamepadDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadSensorEvent.gen.cs b/sources/SDL/SDL/SDL3/GamepadSensorEvent.gen.cs index 66acd5007b..688b960281 100644 --- a/sources/SDL/SDL/SDL3/GamepadSensorEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadSensorEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GamepadType.gen.cs b/sources/SDL/SDL/SDL3/GamepadType.gen.cs index fa7ad93970..9f67653723 100644 --- a/sources/SDL/SDL/SDL3/GamepadType.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBlendFactor.gen.cs b/sources/SDL/SDL/SDL3/GpuBlendFactor.gen.cs index 7c1c00471e..6bfeaddd65 100644 --- a/sources/SDL/SDL/SDL3/GpuBlendFactor.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBlendFactor.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBlendOp.gen.cs b/sources/SDL/SDL/SDL3/GpuBlendOp.gen.cs index 71b6fa87de..1644d564fa 100644 --- a/sources/SDL/SDL/SDL3/GpuBlendOp.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBlendOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBlitInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuBlitInfo.gen.cs index 23606d8f4a..e98645c9d8 100644 --- a/sources/SDL/SDL/SDL3/GpuBlitInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBlitInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBlitRegion.gen.cs b/sources/SDL/SDL/SDL3/GpuBlitRegion.gen.cs index c0c5328c95..27053dde2e 100644 --- a/sources/SDL/SDL/SDL3/GpuBlitRegion.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBlitRegion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBufferBinding.gen.cs b/sources/SDL/SDL/SDL3/GpuBufferBinding.gen.cs index ea6cf77dde..6cd2ad5b61 100644 --- a/sources/SDL/SDL/SDL3/GpuBufferBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBufferBinding.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBufferCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuBufferCreateInfo.gen.cs index decb15601d..ca285382f5 100644 --- a/sources/SDL/SDL/SDL3/GpuBufferCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBufferCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBufferLocation.gen.cs b/sources/SDL/SDL/SDL3/GpuBufferLocation.gen.cs index 2b3c8521e2..19c82e97db 100644 --- a/sources/SDL/SDL/SDL3/GpuBufferLocation.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBufferLocation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuBufferRegion.gen.cs b/sources/SDL/SDL/SDL3/GpuBufferRegion.gen.cs index cf33340ce3..004d0c1e3a 100644 --- a/sources/SDL/SDL/SDL3/GpuBufferRegion.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuBufferRegion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuColorTargetDescription.gen.cs b/sources/SDL/SDL/SDL3/GpuColorTargetDescription.gen.cs index f98ce1a4c7..c07b3cafc0 100644 --- a/sources/SDL/SDL/SDL3/GpuColorTargetDescription.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuColorTargetDescription.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuColorTargetInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuColorTargetInfo.gen.cs index fdd1500e9b..247b78e090 100644 --- a/sources/SDL/SDL/SDL3/GpuColorTargetInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuColorTargetInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuCompareOp.gen.cs b/sources/SDL/SDL/SDL3/GpuCompareOp.gen.cs index b3b9639e25..816f1f4956 100644 --- a/sources/SDL/SDL/SDL3/GpuCompareOp.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuCompareOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuComputePipelineCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuComputePipelineCreateInfo.gen.cs index 50df5afc93..0f903701f0 100644 --- a/sources/SDL/SDL/SDL3/GpuComputePipelineCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuComputePipelineCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuCubeMapFace.gen.cs b/sources/SDL/SDL/SDL3/GpuCubeMapFace.gen.cs index bcc07f01fb..f1596b11a3 100644 --- a/sources/SDL/SDL/SDL3/GpuCubeMapFace.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuCubeMapFace.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuCullMode.gen.cs b/sources/SDL/SDL/SDL3/GpuCullMode.gen.cs index 933ea05087..5072ec12c2 100644 --- a/sources/SDL/SDL/SDL3/GpuCullMode.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuCullMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuDepthStencilState.gen.cs b/sources/SDL/SDL/SDL3/GpuDepthStencilState.gen.cs index be099d0547..2e08deab84 100644 --- a/sources/SDL/SDL/SDL3/GpuDepthStencilState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuDepthStencilState.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_GPUDepthStencilState")] diff --git a/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs index 291b688ef5..9a8ac5bfe1 100644 --- a/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuFillMode.gen.cs b/sources/SDL/SDL/SDL3/GpuFillMode.gen.cs index 99b73bcfa8..258e0c25aa 100644 --- a/sources/SDL/SDL/SDL3/GpuFillMode.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuFillMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuFrontFace.gen.cs b/sources/SDL/SDL/SDL3/GpuFrontFace.gen.cs index 43b96fd0b3..682baeed0c 100644 --- a/sources/SDL/SDL/SDL3/GpuFrontFace.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuFrontFace.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuGraphicsPipelineCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuGraphicsPipelineCreateInfo.gen.cs index 523437846f..5e404d713c 100644 --- a/sources/SDL/SDL/SDL3/GpuGraphicsPipelineCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuGraphicsPipelineCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuGraphicsPipelineTargetInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuGraphicsPipelineTargetInfo.gen.cs index 55ddb234bc..09ea5123f5 100644 --- a/sources/SDL/SDL/SDL3/GpuGraphicsPipelineTargetInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuGraphicsPipelineTargetInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuIndexElementSize.gen.cs b/sources/SDL/SDL/SDL3/GpuIndexElementSize.gen.cs index f6e90a18bb..80c489770d 100644 --- a/sources/SDL/SDL/SDL3/GpuIndexElementSize.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuIndexElementSize.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuIndexedIndirectDrawCommand.gen.cs b/sources/SDL/SDL/SDL3/GpuIndexedIndirectDrawCommand.gen.cs index d9e76f1193..b10ed43c74 100644 --- a/sources/SDL/SDL/SDL3/GpuIndexedIndirectDrawCommand.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuIndexedIndirectDrawCommand.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuIndirectDispatchCommand.gen.cs b/sources/SDL/SDL/SDL3/GpuIndirectDispatchCommand.gen.cs index 7cc5331063..61e92cd119 100644 --- a/sources/SDL/SDL/SDL3/GpuIndirectDispatchCommand.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuIndirectDispatchCommand.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuIndirectDrawCommand.gen.cs b/sources/SDL/SDL/SDL3/GpuIndirectDrawCommand.gen.cs index a4287d4275..a3f09b70d3 100644 --- a/sources/SDL/SDL/SDL3/GpuIndirectDrawCommand.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuIndirectDrawCommand.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuLoadOp.gen.cs b/sources/SDL/SDL/SDL3/GpuLoadOp.gen.cs index d1445d0101..eb83974657 100644 --- a/sources/SDL/SDL/SDL3/GpuLoadOp.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuLoadOp.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_GPULoadOp")] diff --git a/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs b/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs index 3b5a5b1200..50be8af0be 100644 --- a/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuPresentMode.gen.cs b/sources/SDL/SDL/SDL3/GpuPresentMode.gen.cs index c3e4bd75ee..35c251ea31 100644 --- a/sources/SDL/SDL/SDL3/GpuPresentMode.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuPresentMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuPrimitiveType.gen.cs b/sources/SDL/SDL/SDL3/GpuPrimitiveType.gen.cs index 54d4ae095f..d05fc5eb53 100644 --- a/sources/SDL/SDL/SDL3/GpuPrimitiveType.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuPrimitiveType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuRasterizerState.gen.cs b/sources/SDL/SDL/SDL3/GpuRasterizerState.gen.cs index 2a952bf970..62b959cf4a 100644 --- a/sources/SDL/SDL/SDL3/GpuRasterizerState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuRasterizerState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs index b3c3a27a44..d5bad71bc8 100644 --- a/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuSampleCount.gen.cs b/sources/SDL/SDL/SDL3/GpuSampleCount.gen.cs index 5f64db6b65..9cb24a58e4 100644 --- a/sources/SDL/SDL/SDL3/GpuSampleCount.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuSampleCount.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuSamplerAddressMode.gen.cs b/sources/SDL/SDL/SDL3/GpuSamplerAddressMode.gen.cs index 3423c8dce0..e10cfa19ca 100644 --- a/sources/SDL/SDL/SDL3/GpuSamplerAddressMode.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuSamplerAddressMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuSamplerCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuSamplerCreateInfo.gen.cs index 4fd9b3a124..52346a715f 100644 --- a/sources/SDL/SDL/SDL3/GpuSamplerCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuSamplerCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuSamplerMipmapMode.gen.cs b/sources/SDL/SDL/SDL3/GpuSamplerMipmapMode.gen.cs index 7f8b2cb5dd..0518557e59 100644 --- a/sources/SDL/SDL/SDL3/GpuSamplerMipmapMode.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuSamplerMipmapMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuShaderStage.gen.cs b/sources/SDL/SDL/SDL3/GpuShaderStage.gen.cs index 8d00231f9d..d9e459b3b6 100644 --- a/sources/SDL/SDL/SDL3/GpuShaderStage.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuShaderStage.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuStencilOp.gen.cs b/sources/SDL/SDL/SDL3/GpuStencilOp.gen.cs index 5e4952e5b3..04bd8fd8f2 100644 --- a/sources/SDL/SDL/SDL3/GpuStencilOp.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuStencilOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuStencilOpState.gen.cs b/sources/SDL/SDL/SDL3/GpuStencilOpState.gen.cs index d47dd1da22..8ce0db8094 100644 --- a/sources/SDL/SDL/SDL3/GpuStencilOpState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuStencilOpState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuStorageBufferReadWriteBinding.gen.cs b/sources/SDL/SDL/SDL3/GpuStorageBufferReadWriteBinding.gen.cs index 8c3cb3837d..2c0f1d7fce 100644 --- a/sources/SDL/SDL/SDL3/GpuStorageBufferReadWriteBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuStorageBufferReadWriteBinding.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuStorageTextureReadWriteBinding.gen.cs b/sources/SDL/SDL/SDL3/GpuStorageTextureReadWriteBinding.gen.cs index 031a971b71..18f39fdd98 100644 --- a/sources/SDL/SDL/SDL3/GpuStorageTextureReadWriteBinding.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuStorageTextureReadWriteBinding.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuSwapchainComposition.gen.cs b/sources/SDL/SDL/SDL3/GpuSwapchainComposition.gen.cs index 01fa4a40d6..fe614251f3 100644 --- a/sources/SDL/SDL/SDL3/GpuSwapchainComposition.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuSwapchainComposition.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTextureCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureCreateInfo.gen.cs index 4a678bdd77..203eb313fa 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureCreateInfo.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_GPUTextureCreateInfo")] diff --git a/sources/SDL/SDL/SDL3/GpuTextureFormat.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureFormat.gen.cs index 4f5a6cb05b..434d483878 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureFormat.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTextureLocation.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureLocation.gen.cs index 6a59bbc798..2349221ae5 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureLocation.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureLocation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTextureRegion.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureRegion.gen.cs index 963347670c..8516208542 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureRegion.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureRegion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTextureTransferInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureTransferInfo.gen.cs index 35fd70987b..08d4cebc5b 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureTransferInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureTransferInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTextureType.gen.cs b/sources/SDL/SDL/SDL3/GpuTextureType.gen.cs index 624a4cbcc6..d5dd221ec1 100644 --- a/sources/SDL/SDL/SDL3/GpuTextureType.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTextureType.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_GPUTextureType")] diff --git a/sources/SDL/SDL/SDL3/GpuTransferBufferCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuTransferBufferCreateInfo.gen.cs index 5a5ce2f139..e8b16ec666 100644 --- a/sources/SDL/SDL/SDL3/GpuTransferBufferCreateInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTransferBufferCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTransferBufferLocation.gen.cs b/sources/SDL/SDL/SDL3/GpuTransferBufferLocation.gen.cs index 797aec80b7..040d2148fa 100644 --- a/sources/SDL/SDL/SDL3/GpuTransferBufferLocation.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTransferBufferLocation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuTransferBufferUsage.gen.cs b/sources/SDL/SDL/SDL3/GpuTransferBufferUsage.gen.cs index b0637c69ab..a95756f3a5 100644 --- a/sources/SDL/SDL/SDL3/GpuTransferBufferUsage.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuTransferBufferUsage.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuVertexAttribute.gen.cs b/sources/SDL/SDL/SDL3/GpuVertexAttribute.gen.cs index 5747ab87d8..0d7ac9274a 100644 --- a/sources/SDL/SDL/SDL3/GpuVertexAttribute.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuVertexAttribute.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuVertexBufferDescription.gen.cs b/sources/SDL/SDL/SDL3/GpuVertexBufferDescription.gen.cs index dc79aeb53b..cb830185bb 100644 --- a/sources/SDL/SDL/SDL3/GpuVertexBufferDescription.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuVertexBufferDescription.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuVertexInputState.gen.cs b/sources/SDL/SDL/SDL3/GpuVertexInputState.gen.cs index 7f6c4e27a3..e225690bce 100644 --- a/sources/SDL/SDL/SDL3/GpuVertexInputState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuVertexInputState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuViewport.gen.cs b/sources/SDL/SDL/SDL3/GpuViewport.gen.cs index 22a890aafd..fcf7d5c093 100644 --- a/sources/SDL/SDL/SDL3/GpuViewport.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuViewport.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs b/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs index aa0ccc5ed7..30ee82c7c7 100644 --- a/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticCondition.gen.cs b/sources/SDL/SDL/SDL3/HapticCondition.gen.cs index 25dcc98fd4..b819d84f1b 100644 --- a/sources/SDL/SDL/SDL3/HapticCondition.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticCondition.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticConstant.gen.cs b/sources/SDL/SDL/SDL3/HapticConstant.gen.cs index dee3fcdae7..4a78f9f7c7 100644 --- a/sources/SDL/SDL/SDL3/HapticConstant.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticConstant.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticCustom.gen.cs b/sources/SDL/SDL/SDL3/HapticCustom.gen.cs index a30ba28205..b45607f5b0 100644 --- a/sources/SDL/SDL/SDL3/HapticCustom.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticCustom.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticDirection.gen.cs b/sources/SDL/SDL/SDL3/HapticDirection.gen.cs index eb8587bbb0..0e58608825 100644 --- a/sources/SDL/SDL/SDL3/HapticDirection.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticDirection.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticEffect.gen.cs b/sources/SDL/SDL/SDL3/HapticEffect.gen.cs index 94d8ee6eb3..c8096e71f1 100644 --- a/sources/SDL/SDL/SDL3/HapticEffect.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticEffect.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticLeftRight.gen.cs b/sources/SDL/SDL/SDL3/HapticLeftRight.gen.cs index b586059949..85c17b70e8 100644 --- a/sources/SDL/SDL/SDL3/HapticLeftRight.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticLeftRight.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticPeriodic.gen.cs b/sources/SDL/SDL/SDL3/HapticPeriodic.gen.cs index eea1601497..890c9e4064 100644 --- a/sources/SDL/SDL/SDL3/HapticPeriodic.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticPeriodic.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HapticRamp.gen.cs b/sources/SDL/SDL/SDL3/HapticRamp.gen.cs index fcd34c5ba1..fdefdac5ed 100644 --- a/sources/SDL/SDL/SDL3/HapticRamp.gen.cs +++ b/sources/SDL/SDL/SDL3/HapticRamp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HidBusType.gen.cs b/sources/SDL/SDL/SDL3/HidBusType.gen.cs index 65d8acc3f3..4aaacde7b1 100644 --- a/sources/SDL/SDL/SDL3/HidBusType.gen.cs +++ b/sources/SDL/SDL/SDL3/HidBusType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HidDeviceInfo.gen.cs b/sources/SDL/SDL/SDL3/HidDeviceInfo.gen.cs index 65c69eb362..255f33e181 100644 --- a/sources/SDL/SDL/SDL3/HidDeviceInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/HidDeviceInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HintPriority.gen.cs b/sources/SDL/SDL/SDL3/HintPriority.gen.cs index 0fdb82a717..ed59b142d1 100644 --- a/sources/SDL/SDL/SDL3/HintPriority.gen.cs +++ b/sources/SDL/SDL/SDL3/HintPriority.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/HitTestResult.gen.cs b/sources/SDL/SDL/SDL3/HitTestResult.gen.cs index 0aeea432ce..fbfcf79516 100644 --- a/sources/SDL/SDL/SDL3/HitTestResult.gen.cs +++ b/sources/SDL/SDL/SDL3/HitTestResult.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/IOStatus.gen.cs b/sources/SDL/SDL/SDL3/IOStatus.gen.cs index db2a9acdfa..a38e2c4c3e 100644 --- a/sources/SDL/SDL/SDL3/IOStatus.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStatus.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs b/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs index 44f2e3aded..680ee5506c 100644 --- a/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs +++ b/sources/SDL/SDL/SDL3/IOStreamInterface.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/IOWhence.gen.cs b/sources/SDL/SDL/SDL3/IOWhence.gen.cs index 845a9a6492..236bb85e1f 100644 --- a/sources/SDL/SDL/SDL3/IOWhence.gen.cs +++ b/sources/SDL/SDL/SDL3/IOWhence.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ISdl.gen.cs b/sources/SDL/SDL/SDL3/ISdl.gen.cs index 608dfe1d1d..fe32bef04f 100644 --- a/sources/SDL/SDL/SDL3/ISdl.gen.cs +++ b/sources/SDL/SDL/SDL3/ISdl.gen.cs @@ -3,8 +3,10 @@ // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.SDL; diff --git a/sources/SDL/SDL/SDL3/InitState.gen.cs b/sources/SDL/SDL/SDL3/InitState.gen.cs index 749a0026f1..506a622651 100644 --- a/sources/SDL/SDL/SDL3/InitState.gen.cs +++ b/sources/SDL/SDL/SDL3/InitState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoyAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyAxisEvent.gen.cs index d32eddb077..914a2196df 100644 --- a/sources/SDL/SDL/SDL3/JoyAxisEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyAxisEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoyBallEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyBallEvent.gen.cs index 5945e65c95..19328bf068 100644 --- a/sources/SDL/SDL/SDL3/JoyBallEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyBallEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoyBatteryEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyBatteryEvent.gen.cs index 8185d45ae4..6e8ffc29df 100644 --- a/sources/SDL/SDL/SDL3/JoyBatteryEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyBatteryEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs index 39c3202648..4e054f2aab 100644 --- a/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyButtonEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoyDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/JoyDeviceEvent.gen.cs index 84365deb8a..4eed47a135 100644 --- a/sources/SDL/SDL/SDL3/JoyDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/JoyDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoystickConnectionState.gen.cs b/sources/SDL/SDL/SDL3/JoystickConnectionState.gen.cs index 846516723c..5d8c9702bd 100644 --- a/sources/SDL/SDL/SDL3/JoystickConnectionState.gen.cs +++ b/sources/SDL/SDL/SDL3/JoystickConnectionState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/JoystickType.gen.cs b/sources/SDL/SDL/SDL3/JoystickType.gen.cs index d39d5407f6..c71215e216 100644 --- a/sources/SDL/SDL/SDL3/JoystickType.gen.cs +++ b/sources/SDL/SDL/SDL3/JoystickType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/KeyboardDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/KeyboardDeviceEvent.gen.cs index b0db511faa..b76deb9c39 100644 --- a/sources/SDL/SDL/SDL3/KeyboardDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/KeyboardDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Locale.gen.cs b/sources/SDL/SDL/SDL3/Locale.gen.cs index 69da043b96..80c25d6eca 100644 --- a/sources/SDL/SDL/SDL3/Locale.gen.cs +++ b/sources/SDL/SDL/SDL3/Locale.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/LogCategory.gen.cs b/sources/SDL/SDL/SDL3/LogCategory.gen.cs index 23d02de139..ce951b5dce 100644 --- a/sources/SDL/SDL/SDL3/LogCategory.gen.cs +++ b/sources/SDL/SDL/SDL3/LogCategory.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/LogPriority.gen.cs b/sources/SDL/SDL/SDL3/LogPriority.gen.cs index e0d6bc5f0c..fb1bfad4c7 100644 --- a/sources/SDL/SDL/SDL3/LogPriority.gen.cs +++ b/sources/SDL/SDL/SDL3/LogPriority.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MatrixCoefficients.gen.cs b/sources/SDL/SDL/SDL3/MatrixCoefficients.gen.cs index 3e5ce999fe..cee582ac7a 100644 --- a/sources/SDL/SDL/SDL3/MatrixCoefficients.gen.cs +++ b/sources/SDL/SDL/SDL3/MatrixCoefficients.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs index a84d50ae4c..9ae1d2efa4 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxButtonData.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MessageBoxColor.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxColor.gen.cs index d19922eb65..e22fa36126 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxColor.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxColor.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MessageBoxColorScheme.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxColorScheme.gen.cs index 4c8cd08719..1130b0ab81 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxColorScheme.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxColorScheme.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs index 422ab6e568..992e664edb 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxColorType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs b/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs index f47df56d68..9cbe783826 100644 --- a/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs +++ b/sources/SDL/SDL/SDL3/MessageBoxData.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs index 309a3d72a4..3bacdc988f 100644 --- a/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseButtonEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MouseDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseDeviceEvent.gen.cs index 6c1b0668f7..ecd053ba9a 100644 --- a/sources/SDL/SDL/SDL3/MouseDeviceEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseDeviceEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs index 2e0dcd8075..3a98f0a35c 100644 --- a/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseMotionEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MouseWheelDirection.gen.cs b/sources/SDL/SDL/SDL3/MouseWheelDirection.gen.cs index dd90106f32..11814724e9 100644 --- a/sources/SDL/SDL/SDL3/MouseWheelDirection.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseWheelDirection.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs index db67e54aeb..475528495b 100644 --- a/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PackedOrder.gen.cs b/sources/SDL/SDL/SDL3/PackedOrder.gen.cs index aee6a19b69..dd634f5eea 100644 --- a/sources/SDL/SDL/SDL3/PackedOrder.gen.cs +++ b/sources/SDL/SDL/SDL3/PackedOrder.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Palette.gen.cs b/sources/SDL/SDL/SDL3/Palette.gen.cs index 2c227c6aef..daa5f42c95 100644 --- a/sources/SDL/SDL/SDL3/Palette.gen.cs +++ b/sources/SDL/SDL/SDL3/Palette.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PathInfo.gen.cs b/sources/SDL/SDL/SDL3/PathInfo.gen.cs index bd1a6fc025..0d22f2ed32 100644 --- a/sources/SDL/SDL/SDL3/PathInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/PathInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PathType.gen.cs b/sources/SDL/SDL/SDL3/PathType.gen.cs index 75e70331a5..9ab512c008 100644 --- a/sources/SDL/SDL/SDL3/PathType.gen.cs +++ b/sources/SDL/SDL/SDL3/PathType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PenAxis.gen.cs b/sources/SDL/SDL/SDL3/PenAxis.gen.cs index 66ac128f5a..be4a9b0e50 100644 --- a/sources/SDL/SDL/SDL3/PenAxis.gen.cs +++ b/sources/SDL/SDL/SDL3/PenAxis.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs index c70a408442..b0b492c33f 100644 --- a/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenAxisEvent.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_PenAxisEvent")] diff --git a/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs index b2ef7f5a44..b5246630a5 100644 --- a/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenButtonEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs b/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs index 75dfff96f0..5abbfe7896 100644 --- a/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs +++ b/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs index edd4e0277f..d7d23f6b56 100644 --- a/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenMotionEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs b/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs index ce066bfadc..1b3c1c2c87 100644 --- a/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PenProximityEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs b/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs index 4a7df38627..991b08d67c 100644 --- a/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs index 42c5aa5e8e..0dd7bbd86a 100644 --- a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs b/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs index 37b4a7d33d..ee964ac4a1 100644 --- a/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelFormatDetails.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PixelType.gen.cs b/sources/SDL/SDL/SDL3/PixelType.gen.cs index 43c6a7278f..793e3f4205 100644 --- a/sources/SDL/SDL/SDL3/PixelType.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Point.gen.cs b/sources/SDL/SDL/SDL3/Point.gen.cs index e47745d461..6bb59f85ab 100644 --- a/sources/SDL/SDL/SDL3/Point.gen.cs +++ b/sources/SDL/SDL/SDL3/Point.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/PowerState.gen.cs b/sources/SDL/SDL/SDL3/PowerState.gen.cs index dc1cb0411f..47178080a1 100644 --- a/sources/SDL/SDL/SDL3/PowerState.gen.cs +++ b/sources/SDL/SDL/SDL3/PowerState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ProcessIO.gen.cs b/sources/SDL/SDL/SDL3/ProcessIO.gen.cs index 51d39af5cc..fee19e8f4d 100644 --- a/sources/SDL/SDL/SDL3/ProcessIO.gen.cs +++ b/sources/SDL/SDL/SDL3/ProcessIO.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ProgressState.gen.cs b/sources/SDL/SDL/SDL3/ProgressState.gen.cs index 53d6895394..8bc6aba741 100644 --- a/sources/SDL/SDL/SDL3/ProgressState.gen.cs +++ b/sources/SDL/SDL/SDL3/ProgressState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/QuitEvent.gen.cs b/sources/SDL/SDL/SDL3/QuitEvent.gen.cs index cc73dc345b..e38521b4d3 100644 --- a/sources/SDL/SDL/SDL3/QuitEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/QuitEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Rect.gen.cs b/sources/SDL/SDL/SDL3/Rect.gen.cs index 8bfdcad34b..e9eb2b0271 100644 --- a/sources/SDL/SDL/SDL3/Rect.gen.cs +++ b/sources/SDL/SDL/SDL3/Rect.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/RendererLogicalPresentation.gen.cs b/sources/SDL/SDL/SDL3/RendererLogicalPresentation.gen.cs index 2adcccc492..6e6db3a71e 100644 --- a/sources/SDL/SDL/SDL3/RendererLogicalPresentation.gen.cs +++ b/sources/SDL/SDL/SDL3/RendererLogicalPresentation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Sandbox.gen.cs b/sources/SDL/SDL/SDL3/Sandbox.gen.cs index 64d4e5b477..74e4ec5ac5 100644 --- a/sources/SDL/SDL/SDL3/Sandbox.gen.cs +++ b/sources/SDL/SDL/SDL3/Sandbox.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs index 49f902e011..4f850b43de 100644 --- a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs +++ b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index ca5c5513e2..415b5c690a 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -3,8 +3,10 @@ // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.SDL; diff --git a/sources/SDL/SDL/SDL3/SensorEvent.gen.cs b/sources/SDL/SDL/SDL3/SensorEvent.gen.cs index a2ad448020..e38bc70037 100644 --- a/sources/SDL/SDL/SDL3/SensorEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/SensorEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/SensorType.gen.cs b/sources/SDL/SDL/SDL3/SensorType.gen.cs index 2ddf414cb0..f46b91c27b 100644 --- a/sources/SDL/SDL/SDL3/SensorType.gen.cs +++ b/sources/SDL/SDL/SDL3/SensorType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/StorageInterface.gen.cs b/sources/SDL/SDL/SDL3/StorageInterface.gen.cs index 1a3bff95d5..08caaf50ac 100644 --- a/sources/SDL/SDL/SDL3/StorageInterface.gen.cs +++ b/sources/SDL/SDL/SDL3/StorageInterface.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/SystemCursor.gen.cs b/sources/SDL/SDL/SDL3/SystemCursor.gen.cs index 2b85f5faee..f3c5358707 100644 --- a/sources/SDL/SDL/SDL3/SystemCursor.gen.cs +++ b/sources/SDL/SDL/SDL3/SystemCursor.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/SystemTheme.gen.cs b/sources/SDL/SDL/SDL3/SystemTheme.gen.cs index 18e22dedb5..7fc269e79a 100644 --- a/sources/SDL/SDL/SDL3/SystemTheme.gen.cs +++ b/sources/SDL/SDL/SDL3/SystemTheme.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs b/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs index df58e498bb..24f1938c37 100644 --- a/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/TextEditingEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs b/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs index 4c33c88588..232691b577 100644 --- a/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/TextInputEvent.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.SDL; [NativeName("SDL_TextInputEvent")] diff --git a/sources/SDL/SDL/SDL3/Texture.gen.cs b/sources/SDL/SDL/SDL3/Texture.gen.cs index 14f2ab5004..ce0c188f5b 100644 --- a/sources/SDL/SDL/SDL3/Texture.gen.cs +++ b/sources/SDL/SDL/SDL3/Texture.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs b/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs index 963e8c5121..9779334f01 100644 --- a/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs +++ b/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/ThreadPriority.gen.cs b/sources/SDL/SDL/SDL3/ThreadPriority.gen.cs index f0aa8eb66e..f250a831bf 100644 --- a/sources/SDL/SDL/SDL3/ThreadPriority.gen.cs +++ b/sources/SDL/SDL/SDL3/ThreadPriority.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TimeFormat.gen.cs b/sources/SDL/SDL/SDL3/TimeFormat.gen.cs index 95f906fa0a..db49bc96a2 100644 --- a/sources/SDL/SDL/SDL3/TimeFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/TimeFormat.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TouchDeviceType.gen.cs b/sources/SDL/SDL/SDL3/TouchDeviceType.gen.cs index 216747edc8..82d666ac67 100644 --- a/sources/SDL/SDL/SDL3/TouchDeviceType.gen.cs +++ b/sources/SDL/SDL/SDL3/TouchDeviceType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TouchFingerEvent.gen.cs b/sources/SDL/SDL/SDL3/TouchFingerEvent.gen.cs index 496cb5bb14..0a7ddf3f3d 100644 --- a/sources/SDL/SDL/SDL3/TouchFingerEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/TouchFingerEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/TransferCharacteristics.gen.cs b/sources/SDL/SDL/SDL3/TransferCharacteristics.gen.cs index 0e17b9b1ee..32c2c7979c 100644 --- a/sources/SDL/SDL/SDL3/TransferCharacteristics.gen.cs +++ b/sources/SDL/SDL/SDL3/TransferCharacteristics.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/UserEvent.gen.cs b/sources/SDL/SDL/SDL3/UserEvent.gen.cs index f7ab8f590e..0aca77dcba 100644 --- a/sources/SDL/SDL/SDL3/UserEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/UserEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/Vertex.gen.cs b/sources/SDL/SDL/SDL3/Vertex.gen.cs index 698a7e124c..204a41de8a 100644 --- a/sources/SDL/SDL/SDL3/Vertex.gen.cs +++ b/sources/SDL/SDL/SDL3/Vertex.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs index ae4be98021..f93b81e507 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickDesc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs index a84ba37571..5d1534a810 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickSensorDesc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs index 1555ed14bc..96a04e6437 100644 --- a/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs +++ b/sources/SDL/SDL/SDL3/VirtualJoystickTouchpadDesc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SDL/SDL/SDL3/WindowEvent.gen.cs b/sources/SDL/SDL/SDL3/WindowEvent.gen.cs index 729007ede4..008a26e94f 100644 --- a/sources/SDL/SDL/SDL3/WindowEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/WindowEvent.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from SDL.h and corresponding dependencies of SDL3. // Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/SilkTouch/Jobs/Jobs.Microsoft.cs b/sources/SilkTouch/Jobs/Jobs.Microsoft.cs new file mode 100644 index 0000000000..d1aeab800f --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.Microsoft.cs @@ -0,0 +1,54 @@ +// 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.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineMicrosoftJob(this SilkTouchHost host) => + host.DefineJob( + "Microsoft", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/Win32/Win32/Silk.NET.Win32.csproj", + TestProject = "tests/Win32/Win32/Silk.NET.Win32.UnitTests.csproj", + DefaultLicenseHeader = "eng/silktouch/header.txt", + DefaultNamespace = "Silk.NET.Windows", + }, + context => + context + .WithDefaultFunctionTransformers(new()) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = + [ + "eng/submodules/terrafx.interop.windows/generation/**/generate.rsp", + ], + ManualOverrides = new() + { + ["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/shared/strsafe/Windows.gen.cs"] = + "eng/submodules/terrafx.interop.windows/sources/Interop/Windows/Windows/shared/strsafe/Windows.gen.cs", + }, + InputSourceRoot = + "eng/submodules/terrafx.interop.windows/sources/Interop/Windows", + InputTestRoot = + "eng/submodules/terrafx.interop.windows/tests/Interop/Windows", + SkipScrapeIf = static () => !OperatingSystem.IsWindows(), + } + ) + .ChangeNamespace( + new() { Mappings = new() { ["TerraFX.Interop.(.*)"] = "Silk.NET.$1" } } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.OpenAL.cs b/sources/SilkTouch/Jobs/Jobs.OpenAL.cs new file mode 100644 index 0000000000..9aff55b764 --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.OpenAL.cs @@ -0,0 +1,128 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SilkTouch.Mods; + +namespace Silk.NET.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineOpenALJob(this SilkTouchHost host) => + host.DefineJob( + "OpenAL", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/OpenAL/OpenAL/Silk.NET.OpenAL.csproj", + DefaultLicenseHeader = "eng/silktouch/openal/header.txt", + DefaultNamespace = "Silk.NET.OpenAL", + }, + context => + context + .WithDefaultFunctionTransformers( + new() + { + BoolTypes = new() { ["ALboolean"] = null, ["ALCboolean"] = null }, + } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/openal/**/generate.rsp"], + InputSourceRoot = "sources/OpenAL", + InputTestRoot = "tests/OpenAL", + } + ) + .MarkNativeNames() + .ChangeNativeClass( + new() + { + NewClasses = new() + { + ["(alc|ALC_).*"] = "ALContext", + ["EFX_REVERB_PRESET_.*"] = "EfxReverbPreset", + }, + } + ) + .AddApiProfiles(new()) + .MixKhronosData( + new() + { + SpecPath = "eng/submodules/openal-soft/registry/xml/al.xml", + Namespace = "Silk.NET.OpenAL", + TypeMap = new() { ["ALenum"] = "uint", ["ALCenum"] = "uint" }, + NonStandardExtensionNomenclature = true, + Vendors = ["SOFT", "LOKI", "EXT"], + NonVendorSuffixes = ["Direct"], + IdentifyFunctionDataTypes = true, + IdentifyEnumTypeNonExclusiveVendors = true, + IdentifyEnumMemberImpliedVendors = true, + } + ) + .ExtractHandles() + .ExtractNestedTypes() + .ExtractEnumConstants() + .ExtractFunctionPointers() + .TransformHandles(new() { UseDsl = true }) + .InterceptNativeFunctions( + new() { NativeFunctionNames = ["alcOpenDevice", "alcMakeContextCurrent"] } + ) + .TransformFunctions() + .TransformProperties( + new() + { + BoolTypes = new() { ["ALboolean"] = null, ["ALCboolean"] = null }, + } + ) + .IdentifySharedPrefixes(new() { GlobalPrefixHints = ["alc", "al"] }) + .PrettifyNames( + new() + { + NameOverrides = new() + { + ["ALContext"] = "ALContext", + ["EFXEAXREVERBPROPERTIES"] = "EfxEaxReverbProperties", + ["ALCcontextHandle"] = "ContextHandle", + ["ALCdeviceHandle"] = "DeviceHandle", + ["ALBUFFERCALLBACKTYPESOFT"] = "BufferCallbackSOFT", + ["ALCEVENTPROCTYPESOFT"] = "ContextEventProcSOFT", + ["ALEVENTPROCSOFT"] = "EventProcSOFT", + ["ALDEBUGPROCEXT"] = "DebugProcEXT", + ["LPALFOLDBACKCALLBACK"] = "FoldbackCallback", + }, + Affixes = new() + { + ["HandleType"] = new() { Order = 1 }, + ["FunctionPointerDelegateType"] = new() { Order = 1 }, + ["KhronosVendor"] = new() { Order = -1 }, + ["KhronosFunctionDataType"] = new() { IsDiscriminator = true }, + ["KhronosImpliedVendor"] = new() { Remove = true }, + ["KhronosNonExclusiveVendor"] = new() { Remove = true }, + ["SharedPrefix"] = new() { Remove = true }, + }, + } + ) + .TransformEnums( + new() { AddNoneMemberToFlags = true, RewriteMemberValues = true } + ) + .AddVTables( + new() + { + VTables = + [ + new AddVTables.DllImport(), + new AddVTables.StaticWrapper(), + new AddVTables.ThisThread() + { + IsDefault = true, + GenerateFactoryPartial = true, + }, + ], + } + ) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.OpenCL.cs b/sources/SilkTouch/Jobs/Jobs.OpenCL.cs new file mode 100644 index 0000000000..944c3c32fe --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.OpenCL.cs @@ -0,0 +1,180 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SilkTouch.Mods; + +namespace Silk.NET.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineOpenCLJob(this SilkTouchHost host) => + host.DefineJob( + "OpenCL", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/OpenCL/OpenCL/Silk.NET.OpenCL.csproj", + DefaultLicenseHeader = "eng/silktouch/opencl/header.txt", + DefaultNamespace = "Silk.NET.OpenCL", + }, + context => + context + .WithDefaultFunctionTransformers( + new() { BoolTypes = new() { ["cl_bool"] = null } } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/opencl/**/generate.rsp"], + InputSourceRoot = "sources/OpenCL", + InputTestRoot = "tests/OpenCL", + } + ) + .MarkNativeNames() + .AddApiProfiles(new()) + .ExtractHandles() + .ExtractNestedTypes() + .ExtractFunctionPointers() + .MixKhronosData( + new() + { + SpecPath = "eng/submodules/opencl-docs/xml/cl.xml", + Namespace = "Silk.NET.OpenCL", + TypeMap = new() + { + ["cl_bitfield"] = "ulong", + ["cl_properties"] = "ulong", + ["intptr_t"] = "long", + ["ErrorCodes"] = "int", + ["cl_affinity_domain_ext"] = "uint", + ["clCommandExecutionStatus"] = "uint", + ["cl_compiler_mode_altera"] = "uint", + ["cl_motion_estimation_desc_intel.mb_block_type"] = "uint", + ["cl_motion_estimation_desc_intel.subpixel_mode"] = "uint", + ["cl_motion_estimation_desc_intel.sad_adjust_mode"] = "uint", + ["cl_motion_estimation_desc_intel.search_path_type"] = "uint", + ["cl_arm_device_svm_capabilities.flags"] = "uint", + ["cl_arm_svm_alloc.flags"] = "uint", + ["cl_intel_advanced_motion_estimation.flags"] = "uint", + ["cl_intel_advanced_motion_estimation.search_cost_penalty"] = + "uint", + ["cl_intel_advanced_motion_estimation.search_cost_precision"] = + "uint", + [ + "cl_intel_advanced_motion_estimation.intra_search_prediction_modes_buffer.luma_block" + ] = "uint", + [ + "cl_intel_advanced_motion_estimation.intra_search_prediction_modes_buffer.chroma_block" + ] = "uint", + ["cl_intel_advanced_motion_estimation.skip_block_type"] = "uint", + ["cl_intel_advanced_motion_estimation.device_me_version"] = "uint", + [ + "cl_intel_advanced_motion_estimation.cl_motion_detect_desc_intel" + ] = "uint", + [ + "cl_intel_advanced_motion_estimation.cl_motion_detect_desc_intel.2" + ] = "uint", + ["cl_intel_device_side_avc_motion_estimation.version"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.major"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.minor"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.major.dir"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.partition"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.window"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.adjust"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.subpixel"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.cost.precision"] = + "uint", + ["cl_intel_device_side_avc_motion_estimation.weight"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.border"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.skip"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.skip.dir"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.skip.block.based"] = + "uint", + ["cl_intel_device_side_avc_motion_estimation.intra"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.intra.luma"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.intra.neighbor"] = + "uint", + ["cl_intel_device_side_avc_motion_estimation.luma.predictor"] = + "uint", + ["cl_intel_device_side_avc_motion_estimation.frame.dir"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.slice"] = "uint", + ["cl_intel_device_side_avc_motion_estimation.scan.dir"] = "uint", + ["cl_command_termination_reason_arm"] = "uint", + ["cl_platform_command_buffer_capabilities_khr"] = "uint", + ["cl_device_command_buffer_capabilities_khr"] = "uint", + ["cl_media_adapter_type_khr"] = "uint", + ["cl_media_adapter_set_khr"] = "uint", + ["host_cache_policy"] = "uint", + ["allocation_type"] = "uint", + ["cl_unified_shared_memory_capabilities_intel"] = "uint", + ["cl_mem_alloc_info_intel"] = "uint", + ["cl_semaphore_type"] = "uint", + ["cl_kernel_workgroup_info"] = "uint", + }, + Vendors = ["ALTERA"], + IdentifyEnumMemberImpliedVendors = true, + } + ) + .TransformHandles(new() { UseDsl = true }) + .TransformFunctions() + .TransformProperties(new() { BoolTypes = new() { ["cl_bool"] = null } }) + .IdentifySharedPrefixes( + new() + { + GlobalPrefixHints = ["cl", "_cl"], + PrefixOverrides = new() + { + ["cl_device_info"] = "CL_DEVICE", + ["cl_context_properties"] = "CL_CONTEXT", + ["cl_device_integer_dot_product_capabilities"] = + "CL_DEVICE_INTEGER_DOT_PRODUCT", + ["cl_device_integer_dot_product_capabilities_khr"] = + "CL_DEVICE_INTEGER_DOT_PRODUCT", + }, + } + ) + .PrettifyNames( + new() + { + NameOverrides = new() + { + ["CL_DRIVER_VERSION"] = "DriverVersion", + ["CL_DRIVER_UUID"] = "DriverUuid", + ["CL_DRIVER_UUID_KHR"] = "DriverUuidKHR", + }, + Affixes = new() + { + ["HandleType"] = new() { Order = 1 }, + ["FunctionPointerDelegateType"] = new() { Order = 1 }, + ["KhronosVendor"] = new() { Order = -1, Capitalize = true }, + ["KhronosFunctionDataType"] = new() { IsDiscriminator = true }, + ["KhronosImpliedVendor"] = new() { Remove = true }, + ["KhronosNonExclusiveVendor"] = new() { Remove = true }, + ["SharedPrefix"] = new() { Remove = true }, + }, + } + ) + .TransformEnums( + new() { AddNoneMemberToFlags = true, RewriteMemberValues = true } + ) + .AddVTables( + new() + { + VTables = + [ + new AddVTables.DllImport(), + new AddVTables.StaticWrapper(), + new AddVTables.ThisThread() + { + IsDefault = true, + GenerateFactoryPartial = true, + }, + ], + } + ) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.OpenGL.cs b/sources/SilkTouch/Jobs/Jobs.OpenGL.cs new file mode 100644 index 0000000000..fdc35f187e --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.OpenGL.cs @@ -0,0 +1,146 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SilkTouch.Mods; + +namespace Silk.NET.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineOpenGLJob(this SilkTouchHost host) => + host.DefineJob( + "OpenGL", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/OpenGL/OpenGL/Silk.NET.OpenGL.csproj", + DefaultLicenseHeader = "eng/silktouch/opengl/header.txt", + DefaultNamespace = "Silk.NET.OpenGL", + }, + context => + context + .WithDefaultFunctionTransformers( + new() { BoolTypes = new() { ["GLboolean"] = null } } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/opengl/**/generate.rsp"], + InputSourceRoot = "sources/OpenGL", + InputTestRoot = "tests/OpenGL", + } + ) + .MarkNativeNames() + .AddApiProfiles( + new() + { + Profiles = + [ + new() { Profile = "gl", SourceSubdirectory = "glcompat" }, + new() + { + Profile = "glcore", + SourceSubdirectory = "glcore", + MinVersion = "3.2", + }, + new() + { + Profile = "gles1", + SourceSubdirectory = "gles1", + MaxVersion = "2.0", + }, + new() + { + Profile = "gles2", + SourceSubdirectory = "gles2", + MinVersion = "2.0", + }, + ], + } + ) + .BakeSourceSets( + new() + { + SourceSets = new() + { + ["glcompat"] = "gl", + ["glcore"] = "gl", + ["gles1"] = "gl", + ["gles2"] = "gl", + }, + } + ) + .AddOpaqueStructs(new() { Names = ["GLsync"] }) + .MixKhronosData( + new() + { + SpecPath = "eng/submodules/opengl-registry/xml/gl.xml", + Namespace = "Silk.NET.OpenGL", + TypeMap = new() + { + ["GLenum"] = "uint", + ["TraceMaskMESA"] = "uint", + ["PathRenderingTokenNV"] = "byte", + ["PathCoordType"] = "byte", + }, + IdentifyFunctionDataTypes = true, + IdentifyEnumTypeNonExclusiveVendors = true, + IdentifyEnumMemberImpliedVendors = true, + } + ) + .TransformHandles(new() { UseDsl = true }) + .TransformFunctions() + .TransformProperties(new() { BoolTypes = new() { ["GLboolean"] = null } }) + .IdentifySharedPrefixes( + new() + { + GlobalPrefixHints = ["gl"], + PrefixOverrides = new() + { + ["SyncObjectMask"] = "GL_SYNC", + ["OcclusionQueryParameterNameNV"] = "GL", + ["TexStorageAttribs"] = "GL", + ["ContainerType"] = "GL", + ["SeparableTargetEXT"] = "GL", + }, + } + ) + .PrettifyNames( + new() + { + Affixes = new() + { + ["HandleType"] = new() { Order = 1 }, + ["FunctionPointerDelegateType"] = new() { Order = 1 }, + ["KhronosVendor"] = new() { Order = -1 }, + ["KhronosFunctionDataType"] = new() { IsDiscriminator = true }, + ["KhronosImpliedVendor"] = new() { Remove = true }, + ["KhronosNonExclusiveVendor"] = new() { Remove = true }, + ["SharedPrefix"] = new() { Remove = true }, + }, + } + ) + .TransformEnums( + new() { AddNoneMemberToFlags = true, RewriteMemberValues = true } + ) + .AddVTables( + new() + { + VTables = + [ + new AddVTables.DllImport(), + new AddVTables.StaticWrapper(), + new AddVTables.ThisThread() + { + IsDefault = true, + GenerateMakeCurrentPartial = true, + }, + ], + } + ) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.OpenXR.cs b/sources/SilkTouch/Jobs/Jobs.OpenXR.cs new file mode 100644 index 0000000000..98970d7334 --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.OpenXR.cs @@ -0,0 +1,122 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SilkTouch.Mods; + +namespace Silk.NET.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineOpenXRJob(this SilkTouchHost host) => + host.DefineJob( + "OpenXR", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/OpenXR/OpenXR/Silk.NET.OpenXR.csproj", + DefaultLicenseHeader = "eng/silktouch/openxr/header.txt", + DefaultNamespace = "Silk.NET.OpenXR", + }, + context => + context + .WithDefaultFunctionTransformers( + new() { BoolTypes = new() { ["XrBool32"] = null } } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/openxr/**/generate.rsp"], + InputSourceRoot = "sources/OpenXR", + InputTestRoot = "tests/OpenXR", + } + ) + .MarkNativeNames() + .ExtractHandles() + .ExtractNestedTypes() + .ExtractFunctionPointers() + .TransformHandles(new() { UseDsl = true }) + .MixKhronosData( + new() + { + SpecPath = "eng/submodules/openxr-sdk/specification/registry/xr.xml", + Namespace = "Silk.NET.OpenXR", + StructureTypes = ["XrStructureType"], + FlagsTypes = ["XrFlags64"], + IdentifyEnumMemberImpliedVendors = true, + } + ) + .AddApiProfiles( + new() + { + Profiles = + [ + new() { Profile = "openxr", SourceSubdirectory = "openxr" }, + ], + } + ) + .InterceptNativeFunctions(new() { NativeFunctionNames = ["xrCreateInstance"] }) + .TransformFunctions() + .TransformProperties(new() { BoolTypes = new() { ["XrBool32"] = null } }) + .IdentifySharedPrefixes( + new() + { + GlobalPrefixHints = ["PFN_xr", "xr"], + PrefixOverrides = new() + { + ["XrPerfSettingsNotificationLevelEXT"] = + "XR_PERF_SETTINGS_NOTIF_LEVEL", + ["XrSceneMarkerQRCodeSymbolTypeMSFT"] = + "XR_SCENE_MARKER_QR_CODE_SYMBOL_TYPE", + ["XrStructureType"] = "XR_TYPE", + }, + } + ) + .PrettifyNames( + new() + { + Affixes = new() + { + ["HandleType"] = new() { Order = 1 }, + ["FunctionPointerDelegateType"] = new() { Order = 1 }, + ["KhronosVendor"] = new() { Order = -1 }, + ["KhronosImpliedVendor"] = new() { Remove = true }, + ["KhronosHandleType"] = new() { Remove = true }, + ["SharedPrefix"] = new() { Remove = true }, + }, + } + ) + .TransformEnums( + new() + { + AddNoneMemberToFlags = true, + RemoveMembers = + [ + new() { MemberName = "MaxEnum", MemberValue = "0x7FFFFFFF" }, + ], + CoerceBackingTypes = TransformEnums + .EnumBackingTypePreference + .PreferUnsigned, + RewriteMemberValues = true, + } + ) + .AddVTables( + new() + { + VTables = + [ + new AddVTables.DllImport(), + new AddVTables.StaticWrapper(), + new AddVTables.ThisThread() + { + IsDefault = true, + GenerateFactoryPartial = true, + }, + ], + } + ) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.SDL.cs b/sources/SilkTouch/Jobs/Jobs.SDL.cs new file mode 100644 index 0000000000..241b76e1fb --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.SDL.cs @@ -0,0 +1,53 @@ +// 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.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineSDLJob(this SilkTouchHost host) => + host.DefineJob( + "SDL", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/SDL/SDL/Silk.NET.SDL.csproj", + TestProject = "tests/SDL/SDL/Silk.NET.SDL.UnitTests.csproj", + DefaultLicenseHeader = "eng/silktouch/sdl/header.txt", + DefaultNamespace = "Silk.NET.SDL", + }, + context => + context + .WithDefaultFunctionTransformers( + new() { BoolTypes = new() { ["SDL_bool"] = null } } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/sdl/**/generate.rsp"], + InputSourceRoot = "sources/SDL", + InputTestRoot = "tests/SDL", + } + ) + .MarkNativeNames() + .ExtractHandles() + .ExtractNestedTypes() + .ExtractEnumConstants() + .ExtractFunctionPointers() + .TransformHandles(new() { UseDsl = true }) + .TransformFunctions() + .TransformProperties(new() { BoolTypes = new() { ["SDL_bool"] = null } }) + .IdentifySharedPrefixes(new() { GlobalPrefixHints = ["SDL"] }) + .PrettifyNames( + new() { Affixes = new() { ["SharedPrefix"] = new() { Remove = true } } } + ) + .TransformEnums( + new() { AddNoneMemberToFlags = true, RewriteMemberValues = true } + ) + .AddVTables(new()) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Jobs.Vulkan.cs b/sources/SilkTouch/Jobs/Jobs.Vulkan.cs new file mode 100644 index 0000000000..b88fb319b4 --- /dev/null +++ b/sources/SilkTouch/Jobs/Jobs.Vulkan.cs @@ -0,0 +1,131 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SilkTouch.Mods; + +namespace Silk.NET.SilkTouch.Jobs; + +internal static partial class Jobs +{ + public static SilkTouchHost DefineVulkanJob(this SilkTouchHost host) => + host.DefineJob( + "Vulkan", + new() + { + Solution = "Silk.NET.slnx", + SourceProject = "sources/Vulkan/Vulkan/Silk.NET.Vulkan.csproj", + DefaultLicenseHeader = "eng/silktouch/vulkan/header.txt", + DefaultNamespace = "Silk.NET.Vulkan", + }, + context => + context + .WithDefaultFunctionTransformers( + new() { BoolTypes = new() { ["VkBool32"] = null } } + ) + .AddIncludes(new()) + .ClangScraper( + new() + { + ClangSharpResponseFiles = ["eng/silktouch/vulkan/**/generate.rsp"], + InputSourceRoot = "sources/Vulkan", + InputTestRoot = "tests/Vulkan", + } + ) + .MarkNativeNames() + .ExtractHandles() + .ExtractNestedTypes() + .ExtractFunctionPointers() + .TransformHandles(new() { UseDsl = true }) + .MixKhronosData( + new() + { + SpecPath = "eng/submodules/vulkan-docs/xml/vk.xml", + Namespace = "Silk.NET.Vulkan", + StructureTypes = ["VkStructureType"], + FlagsTypes = ["VkFlags", "VkFlags64"], + ExcludeVendorSuffixIdentification = + [ + "VK_VENDOR_ID_VIV", + "VK_VENDOR_ID_VSI", + "VK_VENDOR_ID_MESA", + ], + IdentifyEnumMemberImpliedVendors = true, + } + ) + .AddApiProfiles( + new() + { + Profiles = + [ + new() { Profile = "vulkan", SourceSubdirectory = "vulkan" }, + ], + } + ) + .InterceptNativeFunctions( + new() { NativeFunctionNames = ["vkCreateInstance", "vkCreateDevice"] } + ) + .TransformFunctions() + .TransformProperties(new() { BoolTypes = new() { ["VkBool32"] = null } }) + .IdentifySharedPrefixes( + new() + { + GlobalPrefixHints = ["PFN_vk", "vk"], + PrefixOverrides = new() + { + ["VkImageCreateFlags2KHR"] = "VK_IMAGE_CREATE_2", + ["VkPipelineCreateFlags2"] = "VK_PIPELINE_CREATE_2", + ["VkMemoryDecompressionMethodFlagsEXT"] = + "VK_MEMORY_DECOMPRESSION_METHOD", + }, + } + ) + .PrettifyNames( + new() + { + NameOverrides = new() { ["numAABBs"] = "NumAabbs" }, + Affixes = new() + { + ["HandleType"] = new() { Order = 1 }, + ["FunctionPointerDelegateType"] = new() { Order = 1 }, + ["KhronosVendor"] = new() { Order = -1 }, + ["KhronosImpliedVendor"] = new() { Remove = true }, + ["KhronosHandleType"] = new() { Remove = true }, + ["SharedPrefix"] = new() { Remove = true }, + }, + } + ) + .TransformEnums( + new() + { + AddNoneMemberToFlags = true, + RemoveMembers = + [ + new() { MemberName = "MaxEnum", MemberValue = "0x7FFFFFFF" }, + new() { MemberName = "Invalid", MemberValue = "0x7FFFFFFF" }, + ], + CoerceBackingTypes = TransformEnums + .EnumBackingTypePreference + .PreferUnsigned, + RewriteMemberValues = true, + } + ) + .AddVTables( + new() + { + VTables = + [ + new AddVTables.DllImport(), + new AddVTables.StaticWrapper(), + new AddVTables.ThisThread() + { + IsDefault = true, + GenerateFactoryPartial = true, + }, + ], + } + ) + .StripAttributes( + new() { Remove = ["NativeTypeName", "NameAffix", "Transformed"] } + ) + ); +} diff --git a/sources/SilkTouch/Jobs/Program.cs b/sources/SilkTouch/Jobs/Program.cs new file mode 100644 index 0000000000..7cf1956a8d --- /dev/null +++ b/sources/SilkTouch/Jobs/Program.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. + +namespace Silk.NET.SilkTouch.Jobs; + +internal static class Program +{ + public static Task Main(string[] args) => + SilkTouchHost + .Create() + .DefineMicrosoftJob() + .DefineOpenALJob() + .DefineOpenCLJob() + .DefineOpenGLJob() + .DefineOpenXRJob() + .DefineSDLJob() + .DefineVulkanJob() + .RunAsync(args); +} diff --git a/sources/SilkTouch/Jobs/Silk.NET.SilkTouch.Jobs.csproj b/sources/SilkTouch/Jobs/Silk.NET.SilkTouch.Jobs.csproj new file mode 100644 index 0000000000..c788923697 --- /dev/null +++ b/sources/SilkTouch/Jobs/Silk.NET.SilkTouch.Jobs.csproj @@ -0,0 +1,26 @@ + + + + net10.0 + Exe + $(NETCoreSdkRuntimeIdentifier) + true + + + + + + + + + + diff --git a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs index bd889440ae..6f21d47485 100644 --- a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs +++ b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs @@ -3,15 +3,12 @@ using System.Collections.Concurrent; using System.Diagnostics; -using System.IO.Hashing; -using System.Runtime.InteropServices; using ClangSharp; using ClangSharp.Interop; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Text; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Caching; using Silk.NET.SilkTouch.Mods; using Silk.NET.SilkTouch.Sources; @@ -27,18 +24,19 @@ namespace Silk.NET.SilkTouch.Clang; /// The handler of response file (.rsp) files i.e. configuration for the ClangSharp generator. /// /// The configuration to use. +/// The document factory to use. /// The logger to use. /// The input resolver to use. /// The mods that modify response files before they are fed to ClangSharp. /// The cache provider into which ClangSharp outputs are cached. -[ModConfiguration] public sealed class ClangScraper( ResponseFileHandler rspHandler, - IOptionsSnapshot config, + DocumentFactory documentFactory, + ClangScraper.Configuration config, ILogger logger, IInputResolver inputResolver, ICacheProvider? cacheProvider = null, - IEnumerable>? responseFileMods = null + IEnumerable? responseFileMods = null ) : IMod { // TODO add Windows SDK and Xcode configuration @@ -75,10 +73,9 @@ public record Configuration public int Parallelism { get; init; } /// - /// Skips generation if any of the given strings are in the applicable "skip ifs" are set. + /// Skips generation if evaluates to true. /// - // TODO document - public string[]? SkipScrapeIf { get; init; } + public Func SkipScrapeIf { get; init; } = static () => false; /// /// Forces the scraper to use cache. Best used on the command line. @@ -217,14 +214,12 @@ out var handle /// Runs ClangSharp for each of the given response files and aggregates the raw outputs. /// /// The response files. - /// The job context. /// The configuration. /// The cache key. /// The cancellation token. /// The scraper output wasn't as expected. - private async Task ScrapeBindingsAsync( + private async Task ScrapeBindingsAsync( IReadOnlyList rsps, - IModContext job, Configuration cfg, string cacheKey, CancellationToken ct = default @@ -239,14 +234,10 @@ private async Task ScrapeBindingsAsync( // Figure out what the common root is so we can aggregate the file paths without collisions var srcRoot = cfg.InputSourceRoot - ?? SilkTouchGenerator.GetLongestCommonPath( - rsps.Select(x => x.GeneratorConfiguration.OutputLocation) - ); + ?? GetLongestCommonPath(rsps.Select(x => x.GeneratorConfiguration.OutputLocation)); var testRoot = cfg.InputTestRoot - ?? SilkTouchGenerator.GetLongestCommonPath( - rsps.Select(x => x.GeneratorConfiguration.TestOutputLocation) - ); + ?? GetLongestCommonPath(rsps.Select(x => x.GeneratorConfiguration.TestOutputLocation)); srcRoot = Path.GetFullPath(srcRoot); testRoot = Path.GetFullPath(testRoot); @@ -340,160 +331,123 @@ await inputResolver.ResolvePath(@override) await (cacheDir?.CommitAsync() ?? ValueTask.CompletedTask); - var src = job.SourceProject; - foreach (var (fname, tree) in aggregatedSources) - { - src = src - ?.AddDocument( - Path.GetFileName(fname), - await tree.GetRootAsync(ct), - filePath: src.FullPath(fname) - ) - .Project; - } + var sourceDocuments = await Task.WhenAll( + aggregatedSources.Select(async kvp => + { + var root = await kvp.Value.GetRootAsync(ct); + return new ScrapedDocument(kvp.Key, root); + }) + ); - job.SourceProject = src; - var test = job.TestProject; - foreach (var (fname, tree) in aggregatedTests) - { - test = test - ?.AddDocument( - Path.GetFileName(fname), - await tree.GetRootAsync(ct), - filePath: test.FullPath(fname) - ) - .Project; - } + var testDocuments = await Task.WhenAll( + aggregatedTests.Select(async kvp => + { + var root = await kvp.Value.GetRootAsync(ct); + return new ScrapedDocument(kvp.Key, root); + }) + ); - job.TestProject = test; + return new ScrapeResult(sourceDocuments, testDocuments); } /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - if (ctx.ConfigurationDirectory is null) + if (ctx.WorkingDirectory is null) { throw new NotSupportedException("I/O not available."); } - var applicableSkipIfs = new HashSet(StringComparer.OrdinalIgnoreCase) - { - // Windows-specific conditions - OperatingSystem.IsWindows() - ? "win" - : "!win", - OperatingSystem.IsWindowsVersionAtLeast(10) ? "win10" : "!win10", - // Linux-specific conditions - OperatingSystem.IsLinux() - ? "linux" - : "!linux", - // macOS-specific conditions - .NET 6 doesn't support anything less than Mojave - OperatingSystem.IsMacOS() - ? "macos" - : "!macos", - OperatingSystem.IsMacOSVersionAtLeast(10, 14) ? "macos-mojave" : "!macos-mojave", - OperatingSystem.IsMacOSVersionAtLeast(10, 15) ? "macos-catalina" : "!macos-catalina", - OperatingSystem.IsMacOSVersionAtLeast(11) ? "macos-big-sur" : "!macos-big-sur", - OperatingSystem.IsMacOSVersionAtLeast(12) ? "macos-monterey" : "!macos-monterey", - // Others - VisualStudioResolver.TryGetVisualStudioInfo(out _) - ? "vs" - : "!vs", - }; - // Read the configuration. - var cfg = await inputResolver.Resolve(config.Get(ctx.JobKey)); + var resolvedConfig = await inputResolver.Resolve(config); // Read the response files. logger.LogInformation("Reading response files for {}, please wait...", ctx.JobKey); var rsps = rspHandler - .ReadResponseFiles(ctx.ConfigurationDirectory, cfg.ClangSharpResponseFiles) + .ReadResponseFiles(ctx.WorkingDirectory, resolvedConfig.ClangSharpResponseFiles) .ToList(); // 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)) ?? []) + if (responseFileMods != null) { - rsps = await mod.BeforeScrapeAsync(ctx.JobKey, rsps); + foreach (var mod in responseFileMods) + { + rsps = await mod.BeforeScrapeAsync(ctx.JobKey, rsps); + } } // Resolve any foreign paths referenced in the response files await inputResolver.ResolveInPlace(rsps); - // 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(); + // Try generating the raw bindings with ClangSharp + // If scraping needs to be skipped or if the scrape fails, then fall back to a cache if available + var skipScrape = config.SkipScrapeIf.Invoke(); var cacheKey = $"{ctx.JobKey}-ClangSharp"; + Exception? innerException = null; - try + ScrapeResult? scrapeResult = null; + if (!skipScrape) { - if (!skip) + try { - // Run the scraper over the response files - await ScrapeBindingsAsync(rsps, ctx, cfg, cacheKey, ct); + scrapeResult = await ScrapeBindingsAsync(rsps, resolvedConfig, cacheKey, ct); + } + catch (Exception e) + { + logger.LogError( + e, + "Failed to scrape raw bindings, will attempt to use the cache..." + ); + innerException = e; } } - catch (Exception e) - { - logger.LogError(e, "Failed to scrape raw bindings, will attempt to use the cache..."); - skip = true; - innerException = e; - } - finally + + if (!scrapeResult.HasValue && cacheProvider is not null) { - if (skip && cacheProvider is not null) + await using var cacheDir = await cacheProvider.GetDirectoryAsync( + cacheKey, + CacheIntent.StageIntermediateOutput, + CacheFlags.None, + FileAccess.Read + ); + + var sourceDocuments = new List(); + var testDocuments = new List(); + await foreach ( + var file in ( + cacheDir?.GetCommittedFilesAsync() ?? AsyncEnumerable.Empty() + ).WithCancellation(ct) + ) { - await using var cacheDir = await cacheProvider.GetDirectoryAsync( - cacheKey, - CacheIntent.StageIntermediateOutput, - CacheFlags.None, - FileAccess.Read - ); - var src = ctx.SourceProject; - var tst = ctx.TestProject; - await foreach ( - var file in ( - cacheDir?.GetCommittedFilesAsync() ?? AsyncEnumerable.Empty() - ).WithCancellation(ct) - ) + await cacheDir!.GetCommittedFileAsync(file); + var isSource = file.StartsWith("sources"); + var isTest = file.StartsWith("tests"); + if (!isSource && !isTest) { - await cacheDir!.GetCommittedFileAsync(file); - var isSource = file.StartsWith("sources"); - var isTest = file.StartsWith("tests"); - if (!isSource && !isTest) - { - continue; - } - - // Have to do this if statement this way as we can't have a ref var over an await point - if ((isSource && src is null) || (isTest && tst is null)) - { - continue; - } - - var rel = file[(isSource ? "sources".Length : "tests".Length)..] - .TrimStart('/', '\\'); - var content = await cacheDir.GetCommittedFileAsync(file); - var root = await CSharpSyntaxTree - .ParseText(SourceText.From(content), path: rel, cancellationToken: ct) - .GetRootAsync(ct); - ref var proj = ref isSource ? ref src : ref tst; - var filePath = proj!.FullPath(rel); - proj = proj - ?.AddDocument(Path.GetFileName(file), root, filePath: filePath) - .Project; + continue; } - skip = cacheDir is not null; - if (!skip) + var rel = file[(isSource ? "sources".Length : "tests".Length)..] + .TrimStart('/', '\\'); + var content = await cacheDir.GetCommittedFileAsync(file); + var root = await CSharpSyntaxTree + .ParseText(SourceText.From(content), path: rel, cancellationToken: ct) + .GetRootAsync(ct); + if (isSource) { - ctx.SourceProject = src; - ctx.TestProject = tst; + sourceDocuments.Add(new ScrapedDocument(rel, root)); + } + else + { + testDocuments.Add(new ScrapedDocument(rel, root)); } } + + scrapeResult = new ScrapeResult(sourceDocuments, testDocuments); } - // CA2219: Do not raise exceptions in exception clauses - if (skip) + if (!scrapeResult.HasValue) { if (innerException is not null) { @@ -509,6 +463,55 @@ var file in ( + "fall back on." ); } + + AddDocuments(ctx, scrapeResult.Value); + } + + private record struct ScrapedDocument(string FilePath, SyntaxNode Root); + + private record struct ScrapeResult( + ICollection SourceDocuments, + ICollection TestDocuments + ); + + private void AddDocuments(IModContext ctx, ScrapeResult result) + { + foreach (var document in result.SourceDocuments) + { + documentFactory.ReportDocument(document.Root); + } + + var sourceProject = ctx.SourceProject; + if (sourceProject != null) + { + foreach (var (filePath, root) in result.SourceDocuments) + { + sourceProject = sourceProject + .AddDocument( + Path.GetFileName(filePath), + documentFactory.PopulateDocument(root), + filePath: sourceProject.FullPath(filePath) + ) + .Project; + } + } + ctx.SourceProject = sourceProject; + + var testProject = ctx.TestProject; + if (testProject != null) + { + foreach (var (filePath, root) in result.TestDocuments) + { + testProject = testProject + ?.AddDocument( + Path.GetFileName(filePath), + root, + filePath: testProject.FullPath(filePath) + ) + .Project; + } + } + ctx.TestProject = testProject; } /// @@ -525,6 +528,36 @@ private static bool IsSubPathOf(string path, string baseDirPath) return normalizedPath.StartsWith(normalizedBaseDirPath, StringComparison.OrdinalIgnoreCase); } + private static string GetLongestCommonPath(IEnumerable s) + { + var ret = GetLongestCommonPrefix( + s.Select(x => Path.GetFullPath(x.Replace('\\', '/').TrimEnd('/'))).ToArray() + ); + Debug.Assert(Directory.Exists(ret)); + return ret; + } + + private static string GetLongestCommonPrefix(string[] s) + { + var k = s[0].Length; + for (var i = 1; i < s.Length; i++) + { + k = Math.Min(k, s[i].Length); + for (var j = 0; j < k; j++) + { + if (s[i][j] == s[0][j]) + { + continue; + } + + k = j; + break; + } + } + + return s[0][..k]; + } + private void LogConfiguration(ResponseFile cfg) { if (!logger.IsEnabled(LogLevel.Trace)) diff --git a/sources/SilkTouch/SilkTouch/Clang/IResponseFileMod.cs b/sources/SilkTouch/SilkTouch/Clang/IResponseFileMod.cs index e1a70b80e4..6b0a436d0f 100644 --- a/sources/SilkTouch/SilkTouch/Clang/IResponseFileMod.cs +++ b/sources/SilkTouch/SilkTouch/Clang/IResponseFileMod.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.Threading.Tasks; - namespace Silk.NET.SilkTouch.Clang; /// @@ -21,5 +18,5 @@ public interface IResponseFileMod /// /// The modified response files to be passed into either the next mod or ClangSharp if this is the last mod. /// - Task> BeforeScrapeAsync(string key, List rsps); + public Task> BeforeScrapeAsync(string key, List rsps); } diff --git a/sources/SilkTouch/SilkTouch/IJobDependency.cs b/sources/SilkTouch/SilkTouch/IJobDependency.cs deleted file mode 100644 index 89fbe2fbd2..0000000000 --- a/sources/SilkTouch/SilkTouch/IJobDependency.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Generic; - -namespace Silk.NET.SilkTouch; - -/// -/// A dependency injection helper that can be used to load dependency injection registered types that may or may not be -/// applicable depending on the job configuration. -/// -public interface IJobDependency -{ - /// - /// Gets all instances of for the given job key. - /// - /// The job key. - /// The instances. - IEnumerable Get(string? jobKey); -} diff --git a/sources/SilkTouch/SilkTouch/JobDependencies.cs b/sources/SilkTouch/SilkTouch/JobDependencies.cs deleted file mode 100644 index ce16e0f6eb..0000000000 --- a/sources/SilkTouch/SilkTouch/JobDependencies.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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 Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace Silk.NET.SilkTouch; - -internal class JobDependencies(Dictionary loadedMods, IServiceProvider sp) -{ - private Dictionary Loaded { get; } = loadedMods; - private IServiceProvider Services { get; } = sp; - - public class Global(IEnumerable diProvidedInstances) : IJobDependency - { - public IEnumerable Get(string? key) => diProvidedInstances; - } - - public class Mod(JobDependencies deps, IOptionsSnapshot job) - : IJobDependency - { - public IEnumerable Get(string? key) => - job.Get(key).Mods is { Length: > 0 } applicable - ? applicable - .Select(x => - deps.Loaded.TryGetValue(x, out var m) && m.IsAssignableTo(typeof(T)) - ? deps.Services.GetRequiredService(m) - : null - ) - .OfType() - : []; - } -} diff --git a/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs b/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs index 112f864038..2dfc084390 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddApiProfiles.cs @@ -1,18 +1,11 @@ // 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; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using Silk.NET.Core; using Silk.NET.SilkTouch.Mods.Metadata; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -24,13 +17,10 @@ namespace Silk.NET.SilkTouch.Mods; /// The logger to use. /// The configuration snapshot. /// The version providers. -[ModConfiguration] public class AddApiProfiles( ILogger logger, - IOptionsSnapshot config, - IEnumerable< - IJobDependency>> - > versionProviders + AddApiProfiles.Configuration config, + IEnumerable>> versionProviders ) : IMod { /// @@ -63,7 +53,6 @@ public record Configuration } class Rewriter( - string? jobKey, IEnumerable< IApiMetadataProvider> > versionProviders @@ -76,14 +65,13 @@ class Rewriter( private IEnumerable GetProfileAttributes(string? childSymbol) => Profile is null ? versionProviders - .GetAllMetadata(jobKey, _currentParentSymbol, childSymbol) + .GetAllMetadata(_currentParentSymbol, childSymbol) .Select(x => x?.GetSupportedApiProfileAttribute()) .OfType() : [ versionProviders .GetMetadata( - jobKey, _currentParentSymbol, childSymbol, x => x.Metadata.Profile == Profile.Profile, @@ -219,11 +207,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) return; } - var cfg = config.Get(ctx.JobKey); - var rewriter = new Rewriter( - ctx.JobKey, - versionProviders.SelectMany(x => x.Get(ctx.JobKey)).ToArray() - ); + var rewriter = new Rewriter(versionProviders); foreach (var docId in ctx.SourceProject.DocumentIds) { var doc = @@ -242,7 +226,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) } var root = await tree.GetRootAsync(ct); - rewriter.Profile = cfg + rewriter.Profile = config .Profiles?.Where(x => path.StartsWith(x.SourceSubdirectory, StringComparison.OrdinalIgnoreCase) ) @@ -250,8 +234,8 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) if ( rewriter.Profile is null && !( - cfg.SearchAllFiles.GetValueOrDefault() - || (cfg.SearchAllFiles is null && cfg.Profiles is null or { Length: 0 }) + config.SearchAllFiles.GetValueOrDefault() + || (config.SearchAllFiles is null && config.Profiles is null or { Length: 0 }) ) ) { diff --git a/sources/SilkTouch/SilkTouch/Mods/AddIncludes.cs b/sources/SilkTouch/SilkTouch/Mods/AddIncludes.cs index daf48d9d59..4770eb28c0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddIncludes.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddIncludes.cs @@ -1,13 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.Extensions.FileSystemGlobbing; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Clang; using Silk.NET.SilkTouch.Sources; @@ -19,12 +13,11 @@ namespace Silk.NET.SilkTouch.Mods; /// /// The standard include resolver. /// The user path input resolver. -/// The mod configuration options snapshot. -[ModConfiguration] +/// The mod configuration. public class AddIncludes( IStdIncludeResolver stdResolver, IInputResolver inputResolver, - IOptionsSnapshot options + AddIncludes.Configuration config ) : IMod, IResponseFileMod { /// @@ -61,7 +54,6 @@ public record Configuration /// public async Task> BeforeScrapeAsync(string key, List rsps) { - var cfg = options.Get(key); for (var i = 0; i < rsps.Count; i++) { var rsp = rsps[i]; @@ -69,20 +61,24 @@ public async Task> BeforeScrapeAsync(string key, List $"--include-directory={x}") ?? [] + config.PriorityIncludes?.Select(x => $"--include-directory={x}") ?? [] ); cmdLineArgs.AddRange( - cfg.AdditionalIncludes?.Select(x => $"--include-directory={x}") ?? [] + config.AdditionalIncludes?.Select(x => $"--include-directory={x}") ?? [] ); - if (!cfg.SuppressStdIncludes) + if (!config.SuppressStdIncludes) { cmdLineArgs.AddRange(stdResolver.GetStandardIncludes()); } var matcher = new Matcher(); - matcher.AddIncludePatterns(cfg.RemoveMatchingIncludes?.Where(x => x[0] != '!') ?? []); - matcher.AddExcludePatterns(cfg.RemoveMatchingIncludes?.Where(x => x[0] == '!') ?? []); + matcher.AddIncludePatterns( + config.RemoveMatchingIncludes?.Where(x => x[0] != '!') ?? [] + ); + matcher.AddExcludePatterns( + config.RemoveMatchingIncludes?.Where(x => x[0] == '!') ?? [] + ); for (var j = 0; j < cmdLineArgs.Count; j++) { string? path = null; @@ -118,9 +114,9 @@ public async Task> BeforeScrapeAsync(string key, List 0 } + config.RemoveMatchingIncludes is { Length: > 0 } && matcher.Match(path).HasMatches ) ) diff --git a/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs b/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs index 5ed2e0afdb..383b35dd4d 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddOpaqueStructs.cs @@ -1,18 +1,10 @@ // 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.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; 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 static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -21,18 +13,18 @@ namespace Silk.NET.SilkTouch.Mods; /// /// Adds opaque structs. /// -[ModConfiguration] public class AddOpaqueStructs( + DocumentFactory documentFactory, ILogger logger, - IOptionsSnapshot config + AddOpaqueStructs.Configuration config ) : IMod, IResponseFileMod { - private readonly ConcurrentDictionary _defaultNamespaces = new(); + private string? _defaultNamespace; /// /// The configuration for the opaque structs mod. /// - public record Configuration // DON'T USE CONSTRUCTOR-STYLE RECORDS! Needs a default ctor. + public record Configuration { /// /// Opaque struct names. @@ -51,7 +43,7 @@ public Task> BeforeScrapeAsync(string key, List var ns = rsps[0].GeneratorConfiguration.DefaultNamespace; if (rsps.All(responseFile => responseFile.GeneratorConfiguration.DefaultNamespace == ns)) { - _defaultNamespaces[key] = ns; + _defaultNamespace = ns; } return Task.FromResult(rsps); @@ -60,7 +52,6 @@ public Task> BeforeScrapeAsync(string key, List /// public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var cfg = config.Get(ctx.JobKey); var proj = ctx.SourceProject; if ( proj?.FilePath is null @@ -71,7 +62,7 @@ public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) return Task.CompletedTask; } - foreach (var fullyQualifiedName in cfg.Names ?? Array.Empty()) + foreach (var fullyQualifiedName in config.Names ?? Array.Empty()) { var lastPeriodIndex = fullyQualifiedName.LastIndexOf('.'); var ns = @@ -79,8 +70,8 @@ public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) ? ModUtils.NamespaceIntoIdentifierName( fullyQualifiedName.AsSpan()[..lastPeriodIndex] ) - : _defaultNamespaces.TryGetValue(ctx.JobKey, out var def) - ? ModUtils.NamespaceIntoIdentifierName(def) + : _defaultNamespace != null + ? ModUtils.NamespaceIntoIdentifierName(_defaultNamespace) : null; if (ns is null) { @@ -96,29 +87,31 @@ public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) var fileName = $"{name}.gen.cs"; proj = proj.AddDocument( fileName, - CompilationUnit() - .WithMembers( - SingletonList( - FileScopedNamespaceDeclaration(ns) - .WithMembers( - SingletonList( - StructDeclaration(name) - .WithAttributeLists( - new SyntaxList().WithNativeName( - name + documentFactory.PopulateDocument( + CompilationUnit() + .WithMembers( + SingletonList( + FileScopedNamespaceDeclaration(ns) + .WithMembers( + SingletonList( + StructDeclaration(name) + .WithAttributeLists( + new SyntaxList().WithNativeName( + name + ) ) - ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.ReadOnlyKeyword), - Token(SyntaxKind.PartialKeyword) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.ReadOnlyKeyword), + Token(SyntaxKind.PartialKeyword) + ) ) - ) + ) ) - ) + ) ) - ), + ), filePath: proj.FullPath(fileName) ).Project; } diff --git a/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs b/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs index 330937d3ee..4294987eb0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs +++ b/sources/SilkTouch/SilkTouch/Mods/AddVTables.cs @@ -1,20 +1,10 @@ // 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; -using System.IO; -using System.Linq; -using System.Text.Json.Serialization; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Options; -using Silk.NET.SilkTouch.Clang; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -37,16 +27,12 @@ namespace Silk.NET.SilkTouch.Mods; /// -based partial class implementation of the static interface. However, in some cases this /// could be any other implementation such as the implementation. /// -[ModConfiguration] -public class AddVTables(IOptionsSnapshot config) : IMod +public class AddVTables(AddVTables.Configuration config, DocumentFactory sharedDocumentFactory) + : IMod { /// /// Base class for VTable configurations. /// - [JsonPolymorphic(TypeDiscriminatorPropertyName = "Kind")] - [JsonDerivedType(typeof(DllImport), nameof(DllImport))] - [JsonDerivedType(typeof(ThisThread), nameof(ThisThread))] - [JsonDerivedType(typeof(StaticWrapper), nameof(StaticWrapper))] public abstract record VTable { /// @@ -153,7 +139,7 @@ public override ClassDeclarationSyntax AddMethod(in VTableContext ctx) => ).AddMembers(ctx.Original); /// - public override ClassDeclarationSyntax? GetBoilerplate(in VTableBoilerplateContext ctx) => + public override ClassDeclarationSyntax GetBoilerplate(in VTableBoilerplateContext ctx) => ClassDeclaration(Name) .WithModifiers( TokenList(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.PartialKeyword)) @@ -222,7 +208,7 @@ public record ThisThread : VTable public override bool IsStatic => true; /// - public override ClassDeclarationSyntax? GetBoilerplate(in VTableBoilerplateContext ctx) => + public override ClassDeclarationSyntax GetBoilerplate(in VTableBoilerplateContext ctx) => ClassDeclaration(Name) .WithModifiers( TokenList(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.PartialKeyword)) @@ -513,19 +499,24 @@ public override ClassDeclarationSyntax AddMethod(in VTableContext ctx) /// /// The mod's configuration. /// - public record Configuration // DON'T USE CONSTRUCTOR-STYLE RECORDS! Needs a default ctor. + public record Configuration { /// /// The various VTable types to generate. /// - public IConfigurationSection[]? VTables { get; init; } + public VTable[] VTables { get; init; } = + new VTable[] + { + new DllImport { IsDefault = true }, + new StaticWrapper(), + new ThisThread(), + }; } - class Rewriter(VTable[] vTables) : ModCSharpSyntaxRewriter + private class Rewriter(VTable[] vTables) : CSharpSyntaxRewriter { private InterfaceDeclarationSyntax? _currentInterface; private ClassDeclarationSyntax? _currentClass; - private VTable[] _vTables = vTables; private ClassDeclarationSyntax?[] _currentVTableOutputs = new ClassDeclarationSyntax?[ vTables.Length @@ -595,25 +586,9 @@ public Dictionary< List<(string EntryPoint, string Library)> > EntryPoints { get; set; } = []; - public override SyntaxNode? Visit(SyntaxNode? node) - { - var ret = base.Visit(node); - if (node is CompilationUnitSyntax) - { - foreach (var (k, v) in UsingsToAdd) - { - AggregatedUsings[k] = v; - } - - UsingsToAdd.Clear(); - } - - return ret; - } - private static string InterfaceKey(ClassDeclarationSyntax klass) => $"I{klass.Identifier}"; - public override SyntaxNode? VisitClassDeclaration(ClassDeclarationSyntax node) + public override SyntaxNode VisitClassDeclaration(ClassDeclarationSyntax node) { if (_currentClass is not null) { @@ -868,9 +843,9 @@ out var callConv ); } - for (var i = 0; i < _vTables.Length; i++) + for (var i = 0; i < vTables.Length; i++) { - _currentVTableOutputs[i] = _vTables[i] + _currentVTableOutputs[i] = vTables[i] .AddMethod( new VTableContext( _currentVTableOutputs[i], @@ -1002,7 +977,8 @@ is not (SyntaxKind.ExternKeyword or SyntaxKind.PartialKeyword) && x.ChildTokens() .FirstOrDefault(y => y.IsKind(SyntaxKind.IdentifierToken)) .ToString() == tok.ToString() - ) ?? false + ) + ?? false ) ) { @@ -1028,8 +1004,6 @@ is not (SyntaxKind.ExternKeyword or SyntaxKind.PartialKeyword) public IEnumerable> GetExtraFiles() { - var uta = UsingsToAdd; - UsingsToAdd = AggregatedUsings; foreach (var (outputName, nonInterface) in FullClassNames) { if (nonInterface is null) @@ -1048,7 +1022,7 @@ public IEnumerable> GetExtraFiles() .WithModifiers(TokenList(Token(SyntaxKind.PartialKeyword))) .WithMembers( List( - _vTables + vTables .Select(x => x.GetBoilerplate( new VTableBoilerplateContext( @@ -1077,12 +1051,10 @@ public IEnumerable> GetExtraFiles() ) ) ); - AddUsing("Silk.NET.Core.Loader"); - AddUsing("System.Reflection"); + yield return new KeyValuePair( $"{outputName}.gen.cs", CompilationUnit() - .WithUsings(GetUsings(UsingsToAdd, null)) .WithMembers( string.IsNullOrWhiteSpace(ns) ? SingletonList(boilerplate) @@ -1097,8 +1069,6 @@ public IEnumerable> GetExtraFiles() ) ); } - - UsingsToAdd = uta; } private IEnumerable GenerateTopLevelBoilerplate( @@ -1152,7 +1122,7 @@ private IEnumerable GenerateTopLevelBoilerplate( if ( _staticDefaultWrapper is not null - && !_vTables.Any(x => x is ThisThread && x.Name == _staticDefault) + && !vTables.Any(x => x is ThisThread && x.Name == _staticDefault) ) { yield return PropertyDeclaration( @@ -1408,41 +1378,12 @@ public void Reset() /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var cfg = config.Get(ctx.JobKey); - VTable[]? vTables = null; - if (cfg.VTables is not null) - { - vTables = new VTable[cfg.VTables.Length]; - for (var i = 0; i < cfg.VTables.Length; i++) - { - vTables[i] = (VTable)( - cfg.VTables[i] - .Get( - cfg.VTables[i].GetValue("Kind") switch - { - nameof(DllImport) => typeof(DllImport), - nameof(StaticWrapper) => typeof(StaticWrapper), - nameof(ThisThread) => typeof(ThisThread), - _ => throw new InvalidOperationException( - "VTable must have valid \"Kind\" property" - ), - } - ) - ?? throw new InvalidOperationException( - "Failed to deserialize VTable configuration properly" - ) - ); - } - } - var rw = new Rewriter( - vTables - ?? new VTable[] - { - new DllImport { IsDefault = true }, - new StaticWrapper(), - new ThisThread(), - } - ); + var documentFactory = sharedDocumentFactory.Clone(); + documentFactory.AddUsing("Silk.NET.Core.Loader"); + documentFactory.AddUsing("System.Reflection"); + + var vTables = config.VTables; + var rw = new Rewriter(vTables); var newFiles = new List<(string, CSharpSyntaxNode)>(rw.FullClassNames.Count); var proj = ctx.SourceProject; foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) @@ -1456,9 +1397,14 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) } rw.Reset(); - proj = doc.WithSyntaxRoot( - rw.Visit(node) ?? throw new InvalidOperationException("Visit returned null") - ).Project; + var newNode = + rw.Visit(node) ?? throw new InvalidOperationException("Visit returned null"); + if (newNode != node) + { + newNode = documentFactory.PopulateDocument(newNode); + } + + proj = doc.WithSyntaxRoot(newNode).Project; if (rw.InterfacePartials.Count == 0) { continue; @@ -1469,13 +1415,12 @@ rw.ClassName is not null && fname.Replace(rw.ClassName, $"I{rw.ClassName}") is var ifn && ifn != fname ? ifn - : ModUtils.AddEffectiveSuffix(fname, "Interfaces"); + : fname.AddEffectiveSuffix("Interfaces"); var nNamespaces = rw.InterfacePartials.Select(x => x.Namespace).Distinct().Count(); newFiles.Add( ( ifname, CompilationUnit() - .WithUsings(ModCSharpSyntaxRewriter.GetUsings(rw.AggregatedUsings, null)) .WithMembers( nNamespaces == 1 ? string.IsNullOrWhiteSpace(rw.InterfacePartials[0].Namespace) @@ -1517,7 +1462,11 @@ rw.ClassName is not null ) { proj = proj - ?.AddDocument(Path.GetFileName(fname), root, filePath: proj.FullPath(fname)) + ?.AddDocument( + Path.GetFileName(fname), + documentFactory.PopulateDocument(root), + filePath: proj.FullPath(fname) + ) .Project; } diff --git a/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs index 6c8b169df2..ceda65e70f 100644 --- a/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs +++ b/sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs @@ -1,18 +1,11 @@ // 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.Configuration; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Mods.Bakery; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -21,17 +14,18 @@ namespace Silk.NET.SilkTouch.Mods; /// /// Merging the APIs of multiple source sets into a single source set. /// +/// The document factory to use. /// The logger to use. /// The configuration snapshot. /// /// The available bake strategies. The actual strategy to use is determined from the configuration. /// -[ModConfiguration] public class BakeSourceSets( + DocumentFactory documentFactory, ILogger logger, - IOptionsSnapshot config, - IEnumerable> strategies -) : Mod + BakeSourceSets.Configuration config, + IEnumerable strategies +) : IMod { /// /// The mod configuration. @@ -49,7 +43,8 @@ public record Configuration public required Dictionary SourceSets { get; init; } } - class Rewriter(IBakeStrategy strategy, ILogger logger) : ModCSharpSyntaxRewriter + private class Rewriter(IBakeStrategy strategy, ILogger logger) + : CSharpSyntaxRewriter { public BakeSet? Baked { get; set; } @@ -303,23 +298,18 @@ decl is TypeDeclarationSyntax private Dictionary _baked = new(); /// - public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - await base.ExecuteAsync(ctx, ct); if (ctx.SourceProject is null) { return; } - var cfg = config.Get(ctx.JobKey); - // Locate the bake strategy the user's after. - var strategy = strategies - .SelectMany(x => x.Get(ctx.JobKey)) - .FirstOrDefault(x => - x.Name == cfg.Strategy - || (cfg.Strategy is null && x.GetType() == typeof(DefaultBakeStrategy)) - ); + var strategy = strategies.FirstOrDefault(x => + x.Name == config.Strategy + || (config.Strategy is null && x.GetType() == typeof(DefaultBakeStrategy)) + ); if (strategy is null) { throw new ConfigurationErrorsException( @@ -330,7 +320,6 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = var rewriter = new Rewriter(strategy, logger); var bakery = new Dictionary(); var baked = new List(); - var aggregatedUsings = new Dictionary(); foreach (var docId in ctx.SourceProject.DocumentIds) { var doc = @@ -349,7 +338,7 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = } var root = await tree.GetRootAsync(ct); - var srcSet = cfg + var srcSet = config .SourceSets.Where(x => path.StartsWith(x.Key, StringComparison.OrdinalIgnoreCase)) .MaxBy(x => x.Key.Length); rewriter.SourceSet = srcSet.Key; @@ -369,32 +358,22 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = baked.Add(path); rewriter.Visit(root); - foreach (var (k, v) in rewriter.UsingsToAdd) - { - aggregatedUsings.TryAdd(k, v); - } - rewriter.UsingsToAdd.Clear(); rewriter.Baked = null; rewriter.SourceSet = null; } - var proj = ctx.SourceProject.RemoveDocuments( - [ - .. ctx - .SourceProject.Documents.Where(x => - x.RelativePath() is { } rp && baked.Contains(rp) - ) - .Select(x => x.Id), - ] - ); - foreach ( - var (bakedRoot, bakedPath) in GetBaked(bakery, aggregatedUsings) - .Select(x => (x.Value, path: x.Key)) - ) + var proj = ctx.SourceProject.RemoveDocuments([ + .. ctx + .SourceProject.Documents.Where(x => + x.RelativePath() is { } rp && baked.Contains(rp) + ) + .Select(x => x.Id), + ]); + foreach (var (bakedRoot, bakedPath) in GetBaked(bakery).Select(x => (x.Value, path: x.Key))) { proj = proj.AddDocument( Path.GetFileName(bakedPath), - bakedRoot, + documentFactory.PopulateDocument(bakedRoot), // we can forgive the below nulls because RelativePath checks them, and returns null if they're null. filePath: proj.FullPath(bakedPath) ).Project; @@ -404,8 +383,7 @@ .. ctx } private IEnumerable> GetBaked( - Dictionary bakery, - Dictionary aggregatedUsings + Dictionary bakery ) { foreach (var (subdir, bakeSet) in bakery) @@ -424,7 +402,7 @@ Dictionary aggregatedUsings ? fqTopLevelType[..idx] : null; yield return new KeyValuePair( - $"{subdir}/{PathForFullyQualified(fqTopLevelType)}", + $"{subdir}/{documentFactory.PathForFullyQualified(fqTopLevelType)}", CompilationUnit() .WithMembers( ns is null @@ -436,7 +414,6 @@ ns is null .WithMembers(SingletonList(bakedSyntax)) ) ) - .WithUsings(ModCSharpSyntaxRewriter.GetUsings(aggregatedUsings, null)) ); } } @@ -457,7 +434,8 @@ private static (string? Identifier, MemberDeclarationSyntax Syntax) Bake(BakedMe ty.Members.Concat( member .Inner?.Children.Values.OrderBy(x => x.Index) - .Select(x => Bake(x).Syntax) ?? [] + .Select(x => Bake(x).Syntax) + ?? [] ) ) ) @@ -470,7 +448,8 @@ private static (string? Identifier, MemberDeclarationSyntax Syntax) Bake(BakedMe member .Inner?.Children.Values.OrderBy(x => x.Index) .Select(x => x.Syntax) - .OfType() ?? [] + .OfType() + ?? [] ) ) ) diff --git a/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs b/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs index 561da09fe2..774dfd252b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ChangeNamespace.cs @@ -1,18 +1,10 @@ // 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.IO; -using System.Linq; using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using ClangSharp; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Clang; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -22,18 +14,15 @@ namespace Silk.NET.SilkTouch.Mods; /// A mod that changes namespaces in response files. It is assumed that there will be no other sources of variance with /// regards to namespaces. /// -[ModConfiguration] -public class ChangeNamespace(IOptionsSnapshot config) - : IMod, - IResponseFileMod +public class ChangeNamespace(ChangeNamespace.Configuration config) : IMod, IResponseFileMod { - private readonly Dictionary, IReadOnlyList<(Regex, string)>)> _jobs = - new(); + private readonly HashSet _ns = []; + private readonly List<(Regex, string)> _regexes = []; /// /// The configuration for the change namespace mod. /// - public record Configuration // DON'T USE CONSTRUCTOR-STYLE RECORDS! Needs a default ctor. + public record Configuration { /// /// A mapping of namespace regexes to replacements. @@ -45,8 +34,7 @@ public class ChangeNamespace(IOptionsSnapshot con public Task> BeforeScrapeAsync(string key, List rsps) { var regexes = - config.Get(key).Mappings?.Select(kvp => (new Regex(kvp.Key), kvp.Value)).ToArray() - ?? Array.Empty<(Regex, string)>(); + config.Mappings?.Select(kvp => (new Regex(kvp.Key), kvp.Value)).ToArray() ?? []; for (var i = 0; i < rsps.Count; i++) { var rsp = rsps[i]; @@ -70,7 +58,7 @@ public Task> BeforeScrapeAsync(string key, List }; } - _jobs[key] = ( + _ns.UnionWith( rsps.Select(x => x.GeneratorConfiguration.DefaultNamespace) .Concat( rsps.SelectMany(x => @@ -78,17 +66,16 @@ public Task> BeforeScrapeAsync(string key, List ) ) .Distinct() - .ToHashSet(), - regexes ); + _regexes.AddRange(regexes); + return Task.FromResult(rsps); } /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var (ns, regexes) = _jobs[ctx.JobKey]; - var rewriter = new Rewriter(ns, regexes); + var rewriter = new Rewriter(_ns, _regexes); var proj = ctx.SourceProject; foreach (var docId in proj?.DocumentIds ?? []) { @@ -101,7 +88,6 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) } ctx.SourceProject = proj; - _jobs.Remove(ctx.JobKey); } private class Rewriter : CSharpSyntaxRewriter diff --git a/sources/SilkTouch/SilkTouch/Mods/ChangeNativeClass.cs b/sources/SilkTouch/SilkTouch/Mods/ChangeNativeClass.cs index 0437b88db0..4c71ee599b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ChangeNativeClass.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ChangeNativeClass.cs @@ -9,8 +9,6 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using Silk.NET.Core; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods; @@ -27,11 +25,10 @@ namespace Silk.NET.SilkTouch.Mods; /// . Nested types are not supported at this time. Only static members are moved. /// /// The logger. -/// The configuration options. -[ModConfiguration] +/// The configuration options. public class ChangeNativeClass( ILogger log, - IOptionsSnapshot options + ChangeNativeClass.Configuration config ) : IMod { /// @@ -49,11 +46,8 @@ public class Configuration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - // Get the config. - var cfg = options.Get(ctx.JobKey); - // Compile all the patterns - var patterns = cfg + var patterns = config .NewClasses.Select(x => (Regex: new Regex(x.Key, RegexOptions.Compiled), x.Value)) .ToList(); var finder = new MatchFinder(patterns); diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/DocumentFactory.cs b/sources/SilkTouch/SilkTouch/Mods/Common/DocumentFactory.cs new file mode 100644 index 0000000000..2e23f249e0 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/Mods/Common/DocumentFactory.cs @@ -0,0 +1,208 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch.Mods; + +/// +/// Handles creation of new documents. +/// +/// +/// In general, this class adds defaults when the document is missing them. +/// Namespaces, using statements, and header comments are currently handled. +/// Best practice is to call when the document is added to a project. +/// +public class DocumentFactory +{ + /// + /// The default header to add if the document does not currently have one. + /// + public SyntaxTriviaList? DefaultHeader { get; set; } + + /// + /// The default namespace to use for documents. + /// + public string? DefaultNamespace { get; set; } + + /// + /// Using statements to add to all initialized documents. + /// + public IReadOnlyList Usings => _usings; + + private readonly List _usings = []; + private readonly List _orderedUsingDiscriminators = []; + private readonly HashSet _usingDiscriminators = []; + + private readonly DocumentReporter _reporter; + private readonly DocumentInitializer _initializer; + + /// + /// Creates a new . + /// + public DocumentFactory() + { + _initializer = new DocumentInitializer(this); + _reporter = new DocumentReporter(this); + } + + private DocumentFactory(DocumentFactory original) + : this() + { + DefaultHeader = original.DefaultHeader; + DefaultNamespace = original.DefaultNamespace; + _usings = [.. original._usings]; + _orderedUsingDiscriminators = [.. original._orderedUsingDiscriminators]; + _usingDiscriminators = [.. original._usingDiscriminators]; + } + + /// + /// Determines the path to place a document given the "fully qualified file name". + /// + /// + /// The name of a type prefixed with its namespace. Should not contain a file extension. + /// Eg: Silk.NET.Core.SomeType`1. + /// + /// The file extension. Eg: .gen.cs + /// The path within the project source directory to place this file. + public string PathForFullyQualified(string fullyQualified, string extension = ".gen.cs") + { + if (!fullyQualified.Contains('.') || DefaultNamespace is null) + { + return fullyQualified + extension; + } + + return fullyQualified.StartsWith(DefaultNamespace) + ? fullyQualified[DefaultNamespace.Length..].Trim('.').Replace('.', '/') + extension + : fullyQualified + extension; + } + + /// + /// Reports information about a document in the project. + /// + /// + /// This currently saves the using statements for use in initializing new documents. + /// + public void ReportDocument(SyntaxNode root) => _reporter.Visit(root); + + /// + /// Initializes a new document with using statements, header comments, and a namespace. + /// + public T PopulateDocument(T root) + where T : SyntaxNode => (T)_initializer.Visit(root); + + /// + /// Registers a using directive to be added for all newly initialized documents. + /// + /// The dot-separated namespace. + public void AddUsing(string ns) => + AddUsing(UsingDirective(ModUtils.NamespaceIntoIdentifierName(ns))); + + /// + /// Registers a using directive to be added for all newly initialized documents. + /// + /// The using directive. + public void AddUsing(UsingDirectiveSyntax directive) + { + directive = directive.WithoutTrivia().NormalizeWhitespace(); + var discriminator = GetDiscriminator(directive); + if (_usingDiscriminators.Add(discriminator)) + { + var index = ~_orderedUsingDiscriminators.BinarySearch( + discriminator, + UsingDirectiveComparer.Instance + ); + + _orderedUsingDiscriminators.Insert(index, discriminator); + _usings.Insert(index, directive); + } + } + + /// + /// Creates a clone of this document factory. + /// + /// + /// Can be useful for registering local using statements without affecting the original document factory. + /// + public DocumentFactory Clone() => new(this); + + /// + /// Gets a discriminator for the given using. + /// + /// The using. + /// The discriminator string. + private static string GetDiscriminator(UsingDirectiveSyntax use) => + use.WithoutTrivia().NormalizeWhitespace().ToFullString(); + + private class DocumentReporter(DocumentFactory factory) : CSharpSyntaxWalker + { + public override void VisitUsingDirective(UsingDirectiveSyntax node) + { + if (!node.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) + { + factory.AddUsing(node); + } + } + } + + private class DocumentInitializer(DocumentFactory factory) : CSharpSyntaxRewriter + { + public override SyntaxNode VisitCompilationUnit(CompilationUnitSyntax node) + { + var leadingTrivia = node.GetLeadingTrivia(); + var hasHeader = leadingTrivia.Any(x => + x.IsKind(SyntaxKind.SingleLineCommentTrivia) + || x.IsKind(SyntaxKind.MultiLineCommentTrivia) + ); + + node = (CompilationUnitSyntax)base.VisitCompilationUnit(node.WithLeadingTrivia())!; + + var hasNamespace = node.Members.Any(x => x is BaseNamespaceDeclarationSyntax); + if (!hasNamespace && factory.DefaultNamespace != null) + { + node = node.WithMembers([ + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName(factory.DefaultNamespace) + ) + .WithMembers(node.Members), + ]); + } + + var header = hasHeader ? leadingTrivia : factory.DefaultHeader; + return node.WithUsings(List(factory._usings)).WithLeadingTrivia(header); + } + + public override SyntaxNode? VisitFileScopedNamespaceDeclaration( + FileScopedNamespaceDeclarationSyntax node + ) => base.VisitFileScopedNamespaceDeclaration(node.WithUsings(default)); + } + + private class UsingDirectiveComparer : IComparer + { + public static readonly UsingDirectiveComparer Instance = new(); + + public int Compare(string? x, string? y) + { + const string prefix = "using "; + const string suffix = ";"; + + var xSpan = x.AsSpan()[prefix.Length..][..^suffix.Length]; + var ySpan = y.AsSpan()[prefix.Length..][..^suffix.Length]; + + var xSys = IsSystem(xSpan); + var ySys = IsSystem(ySpan); + return xSys != ySys + ? xSys + ? -1 + : 1 + : xSpan.CompareTo(ySpan, StringComparison.Ordinal); + + bool IsSystem(ReadOnlySpan ns) => + ns.Equals("System", StringComparison.Ordinal) + || ns.StartsWith("System.", StringComparison.Ordinal); + } + } +} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/EvaluatedConstant.cs b/sources/SilkTouch/SilkTouch/Mods/Common/EvaluatedConstant.cs deleted file mode 100644 index ca8497cddd..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/EvaluatedConstant.cs +++ /dev/null @@ -1,103 +0,0 @@ -// 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.Numerics; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; - -namespace Silk.NET.SilkTouch.Mods; - -#if false -public readonly struct EvaluatedConstant -{ - private byte Flags { get; init; } - public bool IsSigned - { - get => (Flags & 1) == 1; - init => Flags = (byte)(value ? Flags | 1 : Flags & 0xFE); - } - - public int Size - { - get => 1 << ((Flags & (2 | 4)) >> 1); - init - { - if (BitOperations.PopCount(unchecked((uint)value)) != 1 || value > 8) - { - throw new ArgumentException("Invalid value, must be 1, 2, 4, or 8.", nameof(value)); - } - - Flags = (byte)((Flags & ~(2 | 4)) | (BitOperations.TrailingZeroCount(value) << 1)); - } - } - - public bool IsLiteral - { - get => (Flags & 8) == 8; - init => Flags = (byte)((Flags & ~8) | (value ? 8 : 0)); - } - - public ulong UnsignedValue { get; init; } - public long SignedValue - { - get => unchecked((long)UnsignedValue); - init => UnsignedValue = unchecked((ulong)value); - } - - public EvaluatedConstant( - ExpressionSyntax syntax, - int contextualSize = 0, - bool? contextualSigned = false, - bool checkedCtx = true - ) - { - var goAgain = false; - do - { - goAgain = false; - if (syntax is LiteralExpressionSyntax { Token: var tok }) - { - (IsSigned, Size, UnsignedValue) = tok.Value switch - { - // Recall that C# has the weird thing where everything is an int/long/uint/ulong until told - // otherwise - sbyte sb => (true, 4, unchecked((ulong)sb)), - short s => (true, 4, unchecked((ulong)s)), - int i => (true, 4, unchecked((ulong)i)), - long l and > int.MaxValue => (true, 8, unchecked((ulong)l)), - long l => (true, 8, unchecked((ulong)l)), - byte b => (false, 4, b), - ushort us => (false, 4, us), - uint ui => (false, 4, ui), - ulong ul => (false, 8, ul), - _ => throw new InvalidOperationException("Unexpected literal type.") - }; - IsLiteral = true; - } - else if (syntax is PrefixUnaryExpressionSyntax unary) - { - - } - else if (syntax is BinaryExpressionSyntax binary) { } - else if (syntax is ParenthesizedExpressionSyntax) - { - goAgain = true; - } - else if ( - syntax is CheckedExpressionSyntax ce - && syntax.IsKind(SyntaxKind.UncheckedExpression) - ) - { - this = new EvaluatedConstant( - ce.Expression, - contextualSize, - contextualSigned, - false - ); - } - } while (goAgain); - } -} -#endif diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/IMod.cs b/sources/SilkTouch/SilkTouch/Mods/Common/IMod.cs index 6b0736789d..3a83085161 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/IMod.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/IMod.cs @@ -1,9 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Threading; -using System.Threading.Tasks; - namespace Silk.NET.SilkTouch.Mods; /// @@ -22,7 +19,8 @@ public interface IMod /// /// The generation job context. /// The cancellation token. - Task InitializeAsync(IModContext ctx, CancellationToken ct = default) => Task.CompletedTask; + public Task InitializeAsync(IModContext ctx, CancellationToken ct = default) => + Task.CompletedTask; /// /// Executes the mod as originally initialised for the given job context asynchronously. @@ -33,5 +31,5 @@ public interface IMod /// /// Always preceded by . /// - Task ExecuteAsync(IModContext ctx, CancellationToken ct = default); + public Task ExecuteAsync(IModContext ctx, CancellationToken ct = default); } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/IModConfigBinder.cs b/sources/SilkTouch/SilkTouch/Mods/Common/IModConfigBinder.cs deleted file mode 100644 index ea8f3886fa..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/IModConfigBinder.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using Microsoft.Extensions.Configuration; - -namespace Silk.NET.SilkTouch.Mods; - -/// -/// A mod that customises the binding of its configuration. -/// -public interface IModConfigBinder : IMod -{ - /// - /// Used to configure the Used to configure the . - /// - /// The options to configure. - static abstract void Configure(BinderOptions options); -} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/IModContext.cs b/sources/SilkTouch/SilkTouch/Mods/Common/IModContext.cs index 4adca0ae1a..31efd879eb 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/IModContext.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/IModContext.cs @@ -1,7 +1,6 @@ // 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 Microsoft.CodeAnalysis; namespace Silk.NET.SilkTouch.Mods; @@ -17,10 +16,9 @@ public interface IModContext : IAsyncDisposable public string JobKey { get; } /// - /// Gets the directory in which the configuration file is contained. May be null if I/O is banned in the current - /// generator form factor (e.g. the SilkTouch framework is running as a source generator). + /// The path to resolve relative paths from. /// - public string? ConfigurationDirectory { get; } + public string? WorkingDirectory { get; } /// /// The current compilation for the generation outputs. diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/IModContextProvider.cs b/sources/SilkTouch/SilkTouch/Mods/Common/IModContextFactory.cs similarity index 67% rename from sources/SilkTouch/SilkTouch/Mods/Common/IModContextProvider.cs rename to sources/SilkTouch/SilkTouch/Mods/Common/IModContextFactory.cs index 05f65ddf8e..6e2743437a 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/IModContextProvider.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/IModContextFactory.cs @@ -1,27 +1,23 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Configuration; - namespace Silk.NET.SilkTouch.Mods; /// /// Creates for use throughout a job. /// -public interface IModContextProvider +public interface IModContextFactory { /// /// Creates a new mod context. /// /// The job key. - /// The generator configuration. + /// The generator configuration. /// The cancellation token. /// The mod context. - Task GetContextAsync( + public Task CreateContextAsync( string key, - IConfigurationSection cfg, + SilkTouchConfiguration config, CancellationToken ct = default ); } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs index 43ab524ef2..3e5bc3bb34 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs @@ -9,32 +9,32 @@ using CSharpier.Core; using CSharpier.Core.CSharp; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; -using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; using EndOfLine = CSharpier.Core.EndOfLine; +using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Silk.NET.SilkTouch.Mods; internal class MSBuildModContext( - MSBuildModContextProvider parent, - IConfigurationSection cfg, + MSBuildModContextFactory parent, + string jobKey, + SilkTouchConfiguration jobConfig, ILogger logger ) : IModContext { private Project? _srcProject, _testProject; - private SilkTouchConfiguration? _cfg = cfg.Get(); - public string JobKey { get; } = cfg.Key; - public string ConfigurationDirectory { get; init; } = Environment.CurrentDirectory; + public string JobKey => jobKey; + + public string WorkingDirectory { get; init; } = Environment.CurrentDirectory; public Project? SourceProject { get => _srcProject; set => Assign(ref _srcProject, ref _testProject, value, nameof(TestProject)); } + public Project? TestProject { get => _testProject; @@ -75,27 +75,19 @@ private static void Assign( public async Task InitializeAsync() { - if (_cfg?.Solution is null) - { - throw new InvalidOperationException("No solution provided in configuration."); - } + var solutionPath = Path.GetFullPath(jobConfig.Solution, WorkingDirectory); + var solution = await parent.OpenSolutionAsync(solutionPath); - var solution = await parent.OpenSolutionAsync( - Path.GetFullPath(_cfg.Solution, ConfigurationDirectory) - ); - - if (_cfg?.SourceProject is null) + if (jobConfig.SourceProject is null) { throw new InvalidOperationException("No source project provided in configuration."); } // First locate the source project - var projectFile = Path.GetFullPath(_cfg.SourceProject, ConfigurationDirectory); + var projectFile = Path.GetFullPath(jobConfig.SourceProject, WorkingDirectory); _srcProject = solution .Projects.Where(x => x.FilePath is not null) - .FirstOrDefault(x => - Path.GetFullPath(x.FilePath!, ConfigurationDirectory) == projectFile - ); + .FirstOrDefault(x => Path.GetFullPath(x.FilePath!, WorkingDirectory) == projectFile); if (_srcProject is null) { throw new InvalidOperationException("Failed to locate source project."); @@ -105,27 +97,19 @@ public async Task InitializeAsync() // TODO maybe one day we'll lift this restriction? I couldn't think of a reason not to have it, but there's also not many to have it. SourceProject = _srcProject.RemoveDocuments([.. _srcProject.DocumentIds]); solution = _srcProject.Solution; - if (_cfg.TestProject is not null) + if (jobConfig.TestProject is not null) { - var testProjectFile = Path.GetFullPath(_cfg.TestProject, ConfigurationDirectory); + var testProjectFile = Path.GetFullPath(jobConfig.TestProject, WorkingDirectory); _testProject = solution .Projects.Where(x => x.FilePath is not null) .FirstOrDefault(x => - Path.GetFullPath(x.FilePath!, ConfigurationDirectory) == testProjectFile + Path.GetFullPath(x.FilePath!, WorkingDirectory) == testProjectFile ); TestProject = _testProject?.RemoveDocuments([.. _testProject.DocumentIds]); solution = _testProject?.Solution ?? solution; } } - private string ObtainCacheKey() - { - // Obtain a cache key for the job, should the mods want to cache any artifacts. - var cacheKey = string.Join(',', cfg.AsEnumerable().OrderBy(x => x.Key)); - logger.LogDebug("Cache key for job (before hashing): {}", cacheKey); - return Convert.ToHexString(XxHash64.Hash(Encoding.UTF8.GetBytes(cacheKey))); - } - public async ValueTask DisposeAsync() { IEnumerable? existingFiles = null; @@ -149,12 +133,7 @@ public async ValueTask DisposeAsync() var existingFileGate = 0; var sw = Stopwatch.StartNew(); logger.LogInformation("Writing {} to disk...", JobKey); - var defaultLicenseHeaderTrivia = _cfg?.DefaultLicenseHeader is null - ? null - : (await File.ReadAllLinesAsync(_cfg.DefaultLicenseHeader)) - .Where(x => x.Length == 0 || x.StartsWith("//")) - .Select(x => Comment(x.Trim())) - .ToArray(); + await Parallel.ForEachAsync( [.. SourceProject?.Documents ?? [], .. TestProject?.Documents ?? []], async (doc, ct) => @@ -181,7 +160,7 @@ testDir is null } Directory.CreateDirectory(fileDir); - await DiffWriteAsync(doc.FilePath, root, pool, defaultLicenseHeaderTrivia, ct); + await DiffWriteAsync(doc.FilePath, root, pool, ct); while (Interlocked.CompareExchange(ref existingFileGate, 1, 0) != 0) { // look ma I made a BreakneckLock @@ -205,7 +184,6 @@ private async Task DiffWriteAsync( string fname, SyntaxNode node, ArrayPool pool, - SyntaxTrivia[]? defaultLicenseHeaderTrivia = null, CancellationToken ct = default ) { @@ -233,25 +211,6 @@ await File.ReadAllBytesAsync(fname, ct), : Task.CompletedTask; } - // Add a license header to files that don't have one - if (defaultLicenseHeaderTrivia is not null) - { - var shouldAddHeader = - !node.GetLeadingTrivia().Any(x => x.Kind() is SyntaxKind.SingleLineCommentTrivia) - || !( - node.ChildNodes() - .FirstOrDefault() - ?.GetLeadingTrivia() - .Any(x => x.Kind() is SyntaxKind.SingleLineCommentTrivia) - ).GetValueOrDefault(); - if (shouldAddHeader) - { - node = node.WithLeadingTrivia( - defaultLicenseHeaderTrivia.Concat(node.GetLeadingTrivia()) - ); - } - } - // Convert our syntax node to a UTF-8 byte array using CSharpier var outputString = await ToNormalisedStringAsync(node, ct); var byteCount = Encoding.UTF8.GetByteCount(outputString); diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextProvider.cs b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextFactory.cs similarity index 87% rename from sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextProvider.cs rename to sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextFactory.cs index 6e7bea39da..9567a3573a 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextProvider.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContextFactory.cs @@ -1,52 +1,57 @@ // 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.Threading; -using System.Threading.Tasks; using Microsoft.Build.Framework; -using Microsoft.Build.Locator; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.MSBuild; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace Silk.NET.SilkTouch.Mods; /// -/// A that uses an MSBuild workspace and writes the modified files to disk (without -/// project modifications) upon disposal of the returned contexts. +/// A that creates mod contexts that use an MSBuild workspace. /// -public class MSBuildModContextProvider(ILogger logger) - : IModContextProvider, +internal class MSBuildModContextFactory(ILogger logger) + : IModContextFactory, IProgress, Microsoft.Build.Framework.ILogger { - private readonly ConcurrentDictionary> _solutions = []; - - internal Task OpenSolutionAsync(string file) => - _solutions.GetOrAdd( - file, - async x => - { - logger.LogInformation("Opening solution at {}...", x); - return await MSBuildWorkspace.Create().OpenSolutionAsync(x, this, this); - } - ); + private readonly Dictionary> _solutions = []; + private readonly Lock _solutionsLock = new(); + + /// + public LoggerVerbosity Verbosity { get; set; } = LoggerVerbosity.Detailed; + + /// + public string? Parameters { get; set; } = string.Empty; /// - public async Task GetContextAsync( + public async Task CreateContextAsync( string key, - IConfigurationSection cfg, + SilkTouchConfiguration config, CancellationToken ct = default ) { - var ret = new MSBuildModContext(this, cfg, logger); + var ret = new MSBuildModContext(this, key, config, logger); await ret.InitializeAsync(); return ret; } + internal Task OpenSolutionAsync(string filePath) + { + using var _ = _solutionsLock.EnterScope(); + + if (!_solutions.TryGetValue(filePath, out var task)) + { + logger.LogInformation("Opening solution at {}...", filePath); + _solutions[filePath] = task = MSBuildWorkspace + .Create() + .OpenSolutionAsync(filePath, this, this); + } + + return task; + } + /// public void Report(ProjectLoadProgress value) => logger.LogDebug( @@ -228,10 +233,4 @@ public void Shutdown() _eventSource.StatusEventRaised -= EventSourceOnStatusEventRaised; _eventSource = null; } - - /// - public LoggerVerbosity Verbosity { get; set; } = LoggerVerbosity.Detailed; - - /// - public string? Parameters { get; set; } = string.Empty; } diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/Mod.cs b/sources/SilkTouch/SilkTouch/Mods/Common/Mod.cs deleted file mode 100644 index f3c636908b..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/Mod.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.CodeAnalysis; -using Silk.NET.SilkTouch.Naming; - -namespace Silk.NET.SilkTouch.Mods; - -/// -/// Represents an with common functionality. -/// -public abstract class Mod : IMod -{ - /// - /// Gets the common namespace determined from the default namespaces within the response file. - /// - public string? CommonNamespace { get; private set; } - - /// - /// Determines where to locate the given "fully qualified file name" i.e. a file name for a type prefixed with its - /// namespace e.g. Silk.NET.Core.SomeType`1.gen.cs. The extension is removed so that we don't mistake it as part of - /// the namespace. - /// - /// - /// The fully qualified file name without the extension e.g. Silk.NET.Core.SomeType`1 - /// - /// The file extension e.g. .gen.cs - /// The path within the sources directory to place this file. - public string PathForFullyQualified(string fullyQualified, string extension = ".gen.cs") - { - if (!fullyQualified.Contains('.') || CommonNamespace is null or { Length: 0 }) - { - return fullyQualified + extension; - } - - return fullyQualified.StartsWith(CommonNamespace) - ? fullyQualified[CommonNamespace.Length..].Trim('.').Replace('.', '/') + extension - : fullyQualified + extension; - } - - /// - public virtual Task InitializeAsync(IModContext ctx, CancellationToken ct = default) => - Task.CompletedTask; - - /// - public virtual async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) - { - if ( - ctx.SourceProject is not null - && await ctx.SourceProject.GetCompilationAsync(ct) is { } comp - ) - { - CommonNamespace = CommonNamespaceVisitor.CommonNamespaceFrom(comp.SourceModule); - } - } - - class CommonNamespaceVisitor : SymbolVisitor - { - private List _namespacesWithTypes = []; - - public override void DefaultVisit(ISymbol symbol) - { - foreach (var member in symbol.Members()) - { - Visit(member); - } - } - - public override void VisitNamedType(INamedTypeSymbol symbol) - { - if (!_namespacesWithTypes.Contains(symbol.ContainingNamespace)) - { - _namespacesWithTypes.Add(symbol.ContainingNamespace); - } - } - - public string CommonNamespace => - NameUtils.FindCommonPrefix( - _namespacesWithTypes - .Select(x => x.NamespaceFromSymbol()) - .Where(x => !string.IsNullOrWhiteSpace(x)) - .ToList(), - true, - int.MaxValue, - true - ); - - public static string CommonNamespaceFrom(ISymbol symbol) - { - var visitor = new CommonNamespaceVisitor(); - visitor.Visit(symbol); - return visitor.CommonNamespace; - } - } -} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModCSharpSyntaxRewriter.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModCSharpSyntaxRewriter.cs deleted file mode 100644 index 6015da3809..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModCSharpSyntaxRewriter.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.CSharp.Syntax; -using Silk.NET.SilkTouch.Mods.Transformation; -using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; - -namespace Silk.NET.SilkTouch.Mods; - -/// -/// containing common functionality for mods. -/// -public abstract class ModCSharpSyntaxRewriter(bool visitIntoStructuredTrivia = false) - : CSharpSyntaxRewriter(visitIntoStructuredTrivia), - ITransformationContext -{ - private ThreadLocal> _usingsToAdd = - new(() => new Dictionary()); - - /// - /// usings to add to the appropriate place within the syntax tree. - /// - public Dictionary UsingsToAdd - { - get => _usingsToAdd.Value!; - set => _usingsToAdd.Value = value; - } - - /// - public override SyntaxNode? VisitCompilationUnit(CompilationUnitSyntax node) - { - var ret = base.VisitCompilationUnit(node); - if (ret is not CompilationUnitSyntax comp) - { - return ret; - } - - foreach ( - var use in comp.Usings.Where(use => !use.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) - ) - { - AddUsing(use); - } - - ret = comp.WithUsings(GetUsings(UsingsToAdd, comp)) - .WithMembers( - UsingsToAdd.Count == 0 - ? comp.Members - : List( - comp.Members.Select(x => - x.WithLeadingTrivia( - x.GetLeadingTrivia() - .Where(y => - y.Kind() - is not SyntaxKind.SingleLineCommentTrivia - and not SyntaxKind.MultiLineCommentTrivia - ) - ) - ) - ) - ); - - return ret; - } - - /// - public override SyntaxNode? VisitFileScopedNamespaceDeclaration( - FileScopedNamespaceDeclarationSyntax node - ) - { - foreach ( - var use in node.Usings.Where(use => !use.GlobalKeyword.IsKind(SyntaxKind.GlobalKeyword)) - ) - { - AddUsing(use); - } - - return base.VisitFileScopedNamespaceDeclaration(node.WithUsings(default)); - } - - /// - /// Gets all the usings for the given compilation unit. - /// - /// The usings to get. - /// The compilation unit. - /// The using list. - public static SyntaxList GetUsings( - IReadOnlyCollection> usingsToAdd, - CompilationUnitSyntax? comp - ) => - List( - usingsToAdd.Select( - (x, i) => - i == 0 - ? x - .Value.WithoutTrailingTrivia() - .WithLeadingTrivia( - usingsToAdd - .Select(y => y.Value.GetLeadingTrivia()) - .Concat(comp?.Members.Select(y => y.GetLeadingTrivia()) ?? []) - .OrderByDescending(y => - y.Count(z => - z.Kind() - is SyntaxKind.SingleLineCommentTrivia - or SyntaxKind.MultiLineCommentTrivia - or SyntaxKind.WhitespaceTrivia - ) - ) - .FirstOrDefault() - ) - : x.Value.WithoutTrivia() - ) - ); - - /// - public virtual string? JobKey { get; set; } - - /// - public MethodDeclarationSyntax? Original { get; set; } - - /// - public IFunctionTransformer[]? Transformers { get; set; } - - /// - /// Adds a namespace import to the resultant syntax tree. - /// - /// The dot-separated namespace. - /// Whether it was added. - protected bool AddUsing(string str) => - AddUsing(UsingDirective(ModUtils.NamespaceIntoIdentifierName(str))); - - /// - /// Adds a using directive to the resultant syntax tree. - /// - /// The directive. - /// Whether it was added. - public bool AddUsing(UsingDirectiveSyntax use) => UsingsToAdd.TryAdd(Discrim(use), use); - - /// - /// Gets a discriminator for the given using. - /// - /// The using. - /// The discriminator string. - protected static string Discrim(UsingDirectiveSyntax use) => - new(use.WithoutTrivia().ToString().Where(char.IsAsciiLetterOrDigit).ToArray()); -} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModConfigurationAttribute.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModConfigurationAttribute.cs deleted file mode 100644 index 1f697d2551..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModConfigurationAttribute.cs +++ /dev/null @@ -1,50 +0,0 @@ -// 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.Diagnostics.CodeAnalysis; -using System.Reflection; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace Silk.NET.SilkTouch.Mods; - -/// -/// Annotates the configuration type for this mod - this is used to call -/// -/// with the appropriate type. -/// -[AttributeUsage(AttributeTargets.Class)] -[RequiresUnreferencedCode("Uses reflection to get attributes on a given mod type.")] -[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] -public class ModConfigurationAttribute< - [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions -> : Attribute { } - -/// -/// Contains helper functions for . -/// -public static class ModConfigurationAttribute -{ - /// - /// Gets the configuration type (if applicable) on the given type as indicated by this attribute. - /// - /// The mod type to check. - /// The type, or null if no configuration is specified. - public static Type? GetConfigurationType(Type modType) - { - var attribute = modType.GetCustomAttribute( - typeof(ModConfigurationAttribute<>), - inherit: false - ); - if ( - attribute is not null - && attribute.GetType().GetGenericTypeDefinition() == typeof(ModConfigurationAttribute<>) - ) - { - return attribute.GetType().GetGenericArguments()[0]; - } - - return null; - } -} diff --git a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs b/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs deleted file mode 100644 index de46c23c34..0000000000 --- a/sources/SilkTouch/SilkTouch/Mods/Common/ModLoader.cs +++ /dev/null @@ -1,46 +0,0 @@ -// 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 Silk.NET.SilkTouch.Clang; - -namespace Silk.NET.SilkTouch.Mods; - -/// -/// Loads s based on strings contained within the configuration file. -/// -public class ModLoader -{ - /// - /// Gets a mod from the given name/string. - /// - /// The name. - /// The loaded mod if the mod was found, null otherwise. - public static Type? LoadModByName(string name) => - name switch - { - nameof(AddApiProfiles) => typeof(AddApiProfiles), - nameof(AddIncludes) => typeof(AddIncludes), - nameof(AddOpaqueStructs) => typeof(AddOpaqueStructs), - nameof(AddVTables) => typeof(AddVTables), - nameof(BakeSourceSets) => typeof(BakeSourceSets), - nameof(ChangeNamespace) => typeof(ChangeNamespace), - nameof(ChangeNativeClass) => typeof(ChangeNativeClass), - nameof(ClangScraper) => typeof(ClangScraper), - nameof(ExtractEnumConstants) => typeof(ExtractEnumConstants), - nameof(ExtractFunctionPointers) => typeof(ExtractFunctionPointers), - nameof(ExtractHandles) => typeof(ExtractHandles), - nameof(ExtractNestedTypes) => typeof(ExtractNestedTypes), - nameof(IdentifySharedPrefixes) => typeof(IdentifySharedPrefixes), - nameof(InterceptNativeFunctions) => typeof(InterceptNativeFunctions), - nameof(MarkNativeNames) => typeof(MarkNativeNames), - nameof(MixKhronosData) => typeof(MixKhronosData), - nameof(PrettifyNames) => typeof(PrettifyNames), - nameof(StripAttributes) => typeof(StripAttributes), - nameof(TransformEnums) => typeof(TransformEnums), - nameof(TransformFunctions) => typeof(TransformFunctions), - nameof(TransformHandles) => typeof(TransformHandles), - nameof(TransformProperties) => typeof(TransformProperties), - _ => null, - }; -} diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractEnumConstants.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractEnumConstants.cs index b317d0b621..79b9c4518b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractEnumConstants.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractEnumConstants.cs @@ -20,7 +20,7 @@ namespace Silk.NET.SilkTouch.Mods; /// extern MyEnum GetMyEnum(); /// /// -public class ExtractEnumConstants : IMod +public class ExtractEnumConstants(DocumentFactory documentFactory) : IMod { /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) @@ -80,17 +80,21 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) project = project ?.AddDocument( $"{identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName(ns.TrimEnd('.')) - ) - .WithMembers(SingletonList(typeDecl)) - ) - : SingletonList(typeDecl) - ), + documentFactory.PopulateDocument( + CompilationUnit() + .WithMembers( + ns is { Length: > 0 } + ? SingletonList( + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName( + ns.TrimEnd('.') + ) + ) + .WithMembers(SingletonList(typeDecl)) + ) + : SingletonList(typeDecl) + ) + ), // Place extracted enum types in the directory common to where the types are referenced from filePath: project.FullPath($"{dir}/{identifier}.gen.cs") ) diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractFunctionPointers.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractFunctionPointers.cs index a0827514ec..ce262ee222 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractFunctionPointers.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractFunctionPointers.cs @@ -16,7 +16,10 @@ namespace Silk.NET.SilkTouch.Mods; /// Replaces function pointers identified by their s /// with delegates and function pointer structs. /// -public partial class ExtractFunctionPointers(ILogger logger) : IMod +public partial class ExtractFunctionPointers( + ILogger logger, + DocumentFactory documentFactory +) : IMod { /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) @@ -77,17 +80,21 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) project = project ?.AddDocument( $"{identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName(ns.TrimEnd('.')) - ) - .WithMembers(SingletonList(typeDecl)) - ) - : SingletonList(typeDecl) - ), + documentFactory.PopulateDocument( + CompilationUnit() + .WithMembers( + ns is { Length: > 0 } + ? SingletonList( + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName( + ns.TrimEnd('.') + ) + ) + .WithMembers(SingletonList(typeDecl)) + ) + : SingletonList(typeDecl) + ) + ), // Place extracted function pointer types in the directory common to where the types are referenced from filePath: project.FullPath($"{dir}/{identifier}.gen.cs") ) @@ -401,161 +408,154 @@ FunctionPointerTypeSyntax rawPfn ) .WithAttributeLists(pfnAttrLists) .WithMembers( - List( - [ - FieldDeclaration( - VariableDeclaration( - PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), - SingletonSeparatedList(VariableDeclarator("_pointer")) - ) + List([ + FieldDeclaration( + VariableDeclaration( + PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), + SingletonSeparatedList(VariableDeclarator("_pointer")) ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PrivateKeyword), - Token(SyntaxKind.ReadOnlyKeyword) - ) - ), - PropertyDeclaration(rawPfn, "Handle") - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithExpressionBody( - ArrowExpressionClause( - CastExpression(rawPfn, IdentifierName("_pointer")) - ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PrivateKeyword), + Token(SyntaxKind.ReadOnlyKeyword) ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConstructorDeclaration(pfnName) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("ptr")).WithType(rawPfn) - ) - ) + ), + PropertyDeclaration(rawPfn, "Handle") + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression(rawPfn, IdentifierName("_pointer")) ) - .WithExpressionBody( - ArrowExpressionClause( - AssignmentExpression( - SyntaxKind.SimpleAssignmentExpression, - IdentifierName("_pointer"), - IdentifierName("ptr") - ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConstructorDeclaration(pfnName) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("ptr")).WithType(rawPfn) ) ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConstructorDeclaration(pfnName) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("proc")) - .WithType(IdentifierName(delegateName)) - ) + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("_pointer"), + IdentifierName("ptr") ) ) - .WithExpressionBody( - ArrowExpressionClause( - AssignmentExpression( - SyntaxKind.SimpleAssignmentExpression, - IdentifierName("_pointer"), - InvocationExpression( - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("SilkMarshal"), - IdentifierName("DelegateToPtr") - ), - ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("proc")) - ) - ) - ) - ) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConstructorDeclaration(pfnName) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("proc")) + .WithType(IdentifierName(delegateName)) ) ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - MethodDeclaration( - PredefinedType(Token(SyntaxKind.VoidKeyword)), - "Dispose" - ) - .WithExpressionBody( - ArrowExpressionClause( + ) + .WithExpressionBody( + ArrowExpressionClause( + AssignmentExpression( + SyntaxKind.SimpleAssignmentExpression, + IdentifierName("_pointer"), InvocationExpression( MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, IdentifierName("SilkMarshal"), - IdentifierName("Free") + IdentifierName("DelegateToPtr") ), ArgumentList( SingletonSeparatedList( - Argument(IdentifierName("_pointer")) + Argument(IdentifierName("proc")) ) ) ) ) ) - .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConversionOperatorDeclaration( - Token(SyntaxKind.ImplicitKeyword), - IdentifierName(pfnName) - ) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("pfn")).WithType(rawPfn) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), "Dispose") + .WithExpressionBody( + ArrowExpressionClause( + InvocationExpression( + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("SilkMarshal"), + IdentifierName("Free") + ), + ArgumentList( + SingletonSeparatedList( + Argument(IdentifierName("_pointer")) + ) ) ) ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.StaticKeyword) + ) + .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConversionOperatorDeclaration( + Token(SyntaxKind.ImplicitKeyword), + IdentifierName(pfnName) + ) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("pfn")).WithType(rawPfn) ) ) - .WithExpressionBody( - ArrowExpressionClause( - ImplicitObjectCreationExpression( - ArgumentList( - SingletonSeparatedList( - Argument(IdentifierName("pfn")) - ) - ), - null - ) - ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - ConversionOperatorDeclaration(Token(SyntaxKind.ImplicitKeyword), rawPfn) - .WithParameterList( - ParameterList( - SingletonSeparatedList( - Parameter(Identifier("pfn")) - .WithType(IdentifierName(pfnName)) - ) + ) + .WithExpressionBody( + ArrowExpressionClause( + ImplicitObjectCreationExpression( + ArgumentList( + SingletonSeparatedList(Argument(IdentifierName("pfn"))) + ), + null ) ) - .WithModifiers( - TokenList( - Token(SyntaxKind.PublicKeyword), - Token(SyntaxKind.StaticKeyword) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + ConversionOperatorDeclaration(Token(SyntaxKind.ImplicitKeyword), rawPfn) + .WithParameterList( + ParameterList( + SingletonSeparatedList( + Parameter(Identifier("pfn")) + .WithType(IdentifierName(pfnName)) ) ) - .WithExpressionBody( - ArrowExpressionClause( - CastExpression( - rawPfn, - MemberAccessExpression( - SyntaxKind.SimpleMemberAccessExpression, - IdentifierName("pfn"), - IdentifierName("_pointer") - ) + ) + .WithModifiers( + TokenList( + Token(SyntaxKind.PublicKeyword), + Token(SyntaxKind.StaticKeyword) + ) + ) + .WithExpressionBody( + ArrowExpressionClause( + CastExpression( + rawPfn, + MemberAccessExpression( + SyntaxKind.SimpleMemberAccessExpression, + IdentifierName("pfn"), + IdentifierName("_pointer") ) ) ) - .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), - // TODO invoke method? - ] - ) + ) + .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)), + // TODO invoke method? + ]) ); var @delegate = DelegateDeclaration( diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractHandles.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractHandles.cs index 87e4075603..c325498169 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractHandles.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractHandles.cs @@ -17,13 +17,11 @@ namespace Silk.NET.SilkTouch.Mods; /// /// See for applying further transformations. /// -public class ExtractHandles(ILogger logger) : Mod +public class ExtractHandles(ILogger logger, DocumentFactory documentFactory) : IMod { /// - public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) + public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - await base.ExecuteAsync(ctx, ct); - var project = ctx.SourceProject; if (project == null) { @@ -47,11 +45,12 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = // Add syntax nodes to the project as new documents foreach (var (fullyQualifiedName, node) in syntaxNodes) { - var relativePath = $"Handles/{PathForFullyQualified(fullyQualifiedName)}"; + var relativePath = + $"Handles/{documentFactory.PathForFullyQualified(fullyQualifiedName)}"; project = project .AddDocument( Path.GetFileName(relativePath), - node, + documentFactory.PopulateDocument(node), filePath: project.FullPath(relativePath) ) .Project; @@ -66,10 +65,12 @@ private class MissingHandleTypeDiscoverer( CancellationToken ct ) : SymbolVisitor { - private readonly HashSet _nonHandleTypes = - new(SymbolEqualityComparer.Default); - private readonly Dictionary _missingTypes = - new(SymbolEqualityComparer.Default); + private readonly HashSet _nonHandleTypes = new( + SymbolEqualityComparer.Default + ); + private readonly Dictionary _missingTypes = new( + SymbolEqualityComparer.Default + ); private string? _currentNamespace = null; private int _pointerTypeDepth = 0; diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTypes.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTypes.cs index 39281754a6..45d1a65a46 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTypes.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTypes.cs @@ -19,7 +19,7 @@ namespace Silk.NET.SilkTouch.Mods; /// Apparently this mod only handles the special nested structs output by /// right now. We might change this in the future if there is the need. /// -public partial class ExtractNestedTypes : IMod +public partial class ExtractNestedTypes(DocumentFactory documentFactory) : IMod { /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) @@ -55,21 +55,25 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) project = project .AddDocument( $"{newStruct.Identifier}.gen.cs", - CompilationUnit() - .WithMembers( - rewriter.Namespace is not null - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName( - rewriter.Namespace + documentFactory.PopulateDocument( + CompilationUnit() + .WithMembers( + rewriter.Namespace is not null + ? SingletonList( + FileScopedNamespaceDeclaration( + ModUtils.NamespaceIntoIdentifierName( + rewriter.Namespace + ) ) - ) - .WithMembers( - SingletonList(newStruct) - ) - ) - : SingletonList(newStruct) - ), + .WithMembers( + SingletonList( + newStruct + ) + ) + ) + : SingletonList(newStruct) + ) + ), // Place extracted struct next to the original file it came from filePath: project.FullPath( $"{file.AsSpan()[..file.LastIndexOf('/')]}/{newStruct.Identifier}.gen.cs" diff --git a/sources/SilkTouch/SilkTouch/Mods/IdentifySharedPrefixes.cs b/sources/SilkTouch/SilkTouch/Mods/IdentifySharedPrefixes.cs index fa36866f91..802ae5b4f4 100644 --- a/sources/SilkTouch/SilkTouch/Mods/IdentifySharedPrefixes.cs +++ b/sources/SilkTouch/SilkTouch/Mods/IdentifySharedPrefixes.cs @@ -4,7 +4,6 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Naming; namespace Silk.NET.SilkTouch.Mods; @@ -17,9 +16,7 @@ namespace Silk.NET.SilkTouch.Mods; /// These are identified as [NameAffix] attributes that /// and other mods can then process further. /// -[ModConfiguration] -public class IdentifySharedPrefixes(IOptionsSnapshot config) - : IMod +public class IdentifySharedPrefixes(IdentifySharedPrefixes.Configuration config) : IMod { /// /// This was from the original NameTrimmer code @@ -57,7 +54,6 @@ public record Configuration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var configuration = config.Get(ctx.JobKey); var project = ctx.SourceProject; if (project is null) { @@ -66,9 +62,9 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) // Sort the hints from large to small // This makes it so that we prefer longer prefixes - var hints = configuration.GlobalPrefixHints.ToList(); + var hints = config.GlobalPrefixHints.ToList(); hints.Sort((x, y) => -x.Length.CompareTo(y.Length)); - configuration = configuration with { GlobalPrefixHints = hints }; + config = config with { GlobalPrefixHints = hints }; // Gather all the names var visitor = new Visitor(); @@ -81,7 +77,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) var results = new Dictionary>(); foreach (var (scope, members) in visitor.Scopes) { - var prefixes = IdentifyPrefixes(scope, members, visitor.NonDeterminant, configuration); + var prefixes = IdentifyPrefixes(scope, members, visitor.NonDeterminant, config); if (prefixes == null) { continue; diff --git a/sources/SilkTouch/SilkTouch/Mods/InterceptNativeFunctions.cs b/sources/SilkTouch/SilkTouch/Mods/InterceptNativeFunctions.cs index 0c36df137a..d1c27c11f0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/InterceptNativeFunctions.cs +++ b/sources/SilkTouch/SilkTouch/Mods/InterceptNativeFunctions.cs @@ -4,7 +4,6 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Naming; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -15,11 +14,7 @@ namespace Silk.NET.SilkTouch.Mods; /// to intercept the function call with custom logic. The original implementation is available with an Internal /// suffix. /// -/// The configuration for the mod. -[ModConfiguration] -public class InterceptNativeFunctions( - IOptionsSnapshot options -) : IMod +public class InterceptNativeFunctions(InterceptNativeFunctions.Configuration config) : IMod { /// /// The configuration for the mod. @@ -35,13 +30,12 @@ public class Configuration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var cfg = options.Get(ctx.JobKey); - if (cfg.NativeFunctionNames is not { Count: > 0 }) + if (config.NativeFunctionNames is not { Count: > 0 }) { return; } - var rewriter = new Rewriter(cfg); + var rewriter = new Rewriter(config); var proj = ctx.SourceProject; foreach (var docId in proj?.DocumentIds ?? []) { @@ -72,7 +66,7 @@ class Rewriter(Configuration cfg) : CSharpSyntaxRewriter return ret; } - public override SyntaxNode? VisitMethodDeclaration(MethodDeclarationSyntax node) + public override SyntaxNode VisitMethodDeclaration(MethodDeclarationSyntax node) { if ( ( diff --git a/sources/SilkTouch/SilkTouch/Mods/MarkNativeNames.cs b/sources/SilkTouch/SilkTouch/Mods/MarkNativeNames.cs index 48549860e9..385f86ac06 100644 --- a/sources/SilkTouch/SilkTouch/Mods/MarkNativeNames.cs +++ b/sources/SilkTouch/SilkTouch/Mods/MarkNativeNames.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Silk.NET.SilkTouch.Clang; @@ -46,7 +47,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) ctx.SourceProject = proj; } - private class Rewriter : ModCSharpSyntaxRewriter + private class Rewriter : CSharpSyntaxRewriter { private SyntaxList TryAddNativeNameAttribute( SyntaxList attributeLists, diff --git a/sources/SilkTouch/SilkTouch/Mods/Metadata/IApiMetadataProvider.cs b/sources/SilkTouch/SilkTouch/Mods/Metadata/IApiMetadataProvider.cs index 03f7c06b34..e4e6ad5a90 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Metadata/IApiMetadataProvider.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Metadata/IApiMetadataProvider.cs @@ -14,27 +14,21 @@ public interface IApiMetadataProvider /// /// Gets metadata of the given type stored for the symbol with the given native name. /// - /// The job key. /// The native name. /// The metadata. /// Whether metadata exists for this symbol. If true, is not null. - bool TryGetSymbolMetadata( - string? jobKey, - string nativeName, - [NotNullWhen(true)] out T? metadata - ) => (metadata = default) is not null; + public bool TryGetSymbolMetadata(string nativeName, [NotNullWhen(true)] out T? metadata) => + (metadata = default) is not null; /// /// Gets metadata of the given type stored for the child symbol (e.g. parameter) with the given name on the symbol /// (e.g. function) with the given native name. /// - /// The job key. /// The native name. /// The parameter name. /// The metadata. /// Whether metadata exists for this symbol. If true, is not null. - bool TryGetChildSymbolMetadata( - string? jobKey, + public bool TryGetChildSymbolMetadata( string nativeName, string childNativeName, [NotNullWhen(true)] out T? metadata diff --git a/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs b/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs index 669d482211..650a2c598b 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Metadata/MetadataUtils.cs @@ -123,7 +123,6 @@ out var spanSymbolMap /// Gets the first matching metadata item for a specific symbol. /// /// The metadata providers. - /// The current job key. /// /// The parent symbol, optionally containing the symbol identified by if provided. /// Used as input to if @@ -143,20 +142,18 @@ out var spanSymbolMap [return: NotNullIfNotNull(nameof(defaultValue))] public static T? GetMetadata( this IEnumerable>> metadataProviders, - string? jobKey, string? parentSymbol = null, string? childSymbol = null, Predicate<(T Metadata, MetadataSources Sources)>? filter = default, T? defaultValue = default ) => - GetAllMetadata(metadataProviders, jobKey, parentSymbol, childSymbol, filter) + GetAllMetadata(metadataProviders, parentSymbol, childSymbol, filter) .FirstOrDefault(defaultValue); /// /// Gets all matching metadata items for a specific symbol. /// /// The metadata providers. - /// The current job key. /// /// The parent symbol, optionally containing the symbol identified by if provided. /// Used as input to if @@ -174,7 +171,6 @@ out var spanSymbolMap /// The metadata item. public static IEnumerable GetAllMetadata( this IEnumerable>> metadataProviders, - string? jobKey, string? parentSymbol = null, string? childSymbol = null, Predicate<(T Metadata, MetadataSources Sources)>? filter = default @@ -194,7 +190,6 @@ out var spanSymbolMap { if ( provider.TryGetChildSymbolMetadata( - jobKey, parentSymbol, childSymbol, out var childMetadata @@ -216,7 +211,7 @@ var child in childMetadata.Where(x => foreach (var provider in metadataProviders) { - if (provider.TryGetSymbolMetadata(jobKey, parentSymbol, out var parentMetadata)) + if (provider.TryGetSymbolMetadata(parentSymbol, out var parentMetadata)) { var source = MetadataSources.Parent; if (!foundChildMetadata) @@ -325,7 +320,6 @@ int outerCount /// The method with the parameters to enumerate. /// The metadata providers. /// - /// /// public static IEnumerable<( ParameterSyntax Param, @@ -334,8 +328,7 @@ int outerCount )> EnumerateSymbolConstraints( this MethodDeclarationSyntax decl, IEnumerable> providers, - string? entryPoint = null, - string? jobKey = null + string? entryPoint = null ) { if (entryPoint is null) @@ -352,7 +345,6 @@ int outerCount PtrParamConstraints: providers .Select(z => z.TryGetChildSymbolMetadata( - jobKey, entryPoint, y.PtrParam.Identifier.ToString().TrimStart('@'), out var md @@ -372,7 +364,6 @@ out var md /// The method declaration. /// The metadata providers. /// The entry point. Determined from the declaration if not provided. - /// The job key to use when looking up metadata. /// /// An enumerable over the declaration's parameters, where the parameter syntax and indices are given along with an /// enumerable of the other parameter syntaxes (along with the indices and constraints) for which the parameter @@ -389,15 +380,14 @@ out var md )> EnumerateCountParameterInfo( this MethodDeclarationSyntax decl, IEnumerable> providers, - string? entryPoint = null, - string? jobKey = null + string? entryPoint = null ) => decl.ParameterList.Parameters.Select( (x, i) => ( CountParam: x, CountParamIdx: i, - ParamsForCount: decl.EnumerateSymbolConstraints(providers, entryPoint, jobKey) + ParamsForCount: decl.EnumerateSymbolConstraints(providers, entryPoint) .Where(y => y.ParamConstraints?.CommonUsage?.CountExpression.AsSpan() .TrimStart('@') diff --git a/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs b/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs index 11bec771a7..408d55dc6a 100644 --- a/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs +++ b/sources/SilkTouch/SilkTouch/Mods/MixKhronosData.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Concurrent; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Text.RegularExpressions; using System.Xml.Linq; @@ -10,7 +8,6 @@ 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.Mods.Metadata; using Silk.NET.SilkTouch.Mods.Transformation; @@ -22,12 +19,10 @@ namespace Silk.NET.SilkTouch.Mods; /// /// A mod that reads Khronos specifications to influence codegen. /// -/// The logger. -/// The configuration. -[ModConfiguration] public partial class MixKhronosData( + DocumentFactory documentFactory, ILogger logger, - IOptionsSnapshot cfg + MixKhronosData.Configuration config ) : IMod, IResponseFileMod, @@ -35,10 +30,10 @@ public partial class MixKhronosData( IApiMetadataProvider, IApiMetadataProvider> { - internal ConcurrentDictionary Jobs = new(); + internal JobData Job = null!; private static readonly char[] _listSeparators = { ',', '|', '+' }; - private class NameAffixes + private static class NameAffixes { public const string KhronosFunctionDataType = nameof(KhronosFunctionDataType); public const string KhronosHandleType = nameof(KhronosHandleType); @@ -265,23 +260,22 @@ public record Configuration /// public async Task InitializeAsync(IModContext ctx, CancellationToken ct = default) { - var currentConfig = cfg.Get(ctx.JobKey); - var specPath = currentConfig.SpecPath; - var job = Jobs[ctx.JobKey] = new JobData + var specPath = config.SpecPath; + Job = new JobData { - Configuration = currentConfig, - TypeMap = currentConfig.TypeMap is not null - ? new Dictionary(currentConfig.TypeMap) + Configuration = config, + TypeMap = config.TypeMap is not null + ? new Dictionary(config.TypeMap) : [], }; - job.TypeMap.TryAdd("int8_t", "sbyte"); - job.TypeMap.TryAdd("uint8_t", "byte"); - job.TypeMap.TryAdd("int16_t", "short"); - job.TypeMap.TryAdd("uint16_t", "ushort"); - job.TypeMap.TryAdd("int32_t", "int"); - job.TypeMap.TryAdd("uint32_t", "uint"); - job.TypeMap.TryAdd("int64_t", "long"); - job.TypeMap.TryAdd("uint64_t", "ulong"); + Job.TypeMap.TryAdd("int8_t", "sbyte"); + Job.TypeMap.TryAdd("uint8_t", "byte"); + Job.TypeMap.TryAdd("int16_t", "short"); + Job.TypeMap.TryAdd("uint16_t", "ushort"); + Job.TypeMap.TryAdd("int32_t", "int"); + Job.TypeMap.TryAdd("uint32_t", "uint"); + Job.TypeMap.TryAdd("int64_t", "long"); + Job.TypeMap.TryAdd("uint64_t", "ulong"); if (specPath is null) { // No metadata, can't continue. It'd be odd if the Khronos mod is being used in this case. There was once @@ -295,50 +289,49 @@ public async Task InitializeAsync(IModContext ctx, CancellationToken ct = defaul var xml = await XDocument.LoadAsync(fs, LoadOptions.None, CancellationToken.None); var (apiSets, supportedApiProfiles) = EvaluateProfiles(xml); - job.ApiSets = apiSets; - job.SupportedApiProfiles = supportedApiProfiles; + Job.ApiSets = apiSets; + Job.SupportedApiProfiles = supportedApiProfiles; var profiles = supportedApiProfiles .SelectMany(x => x.Value) .Select(x => x.Profile) .ToHashSet(); - job.Vendors.UnionWith( - [ - .. xml.Element("registry") - ?.Element("tags") - ?.Elements("tag") + Job.Vendors.UnionWith([ + .. xml.Element("registry") + ?.Element("tags") + ?.Elements("tag") + .Attributes("name") + .Select(x => x.Value) + ?? [], + .. config.NonStandardExtensionNomenclature + ? [] + : xml.Element("registry") + ?.Element("extensions") + ?.Elements("extension") + // Only include vendors who have extensions that match a declared profile + // This is mainly to exclude extensions that are declared as supported="disabled" + .Where(ext => + { + var supportedProfiles = ext.Attribute("supported")?.Value.Split("|") ?? []; + return profiles.Intersect(supportedProfiles).Any(); + }) .Attributes("name") - .Select(x => x.Value) ?? [], - .. currentConfig.NonStandardExtensionNomenclature - ? [] - : xml.Element("registry") - ?.Element("extensions") - ?.Elements("extension") - // Only include vendors who have extensions that match a declared profile - // This is mainly to exclude extensions that are declared as supported="disabled" - .Where(ext => - { - var supportedProfiles = - ext.Attribute("supported")?.Value.Split("|") ?? []; - return profiles.Intersect(supportedProfiles).Any(); - }) - .Attributes("name") - // Extract the second part from the extension name - // Eg: GL_NV_command_list -> NV - .Select(name => name.Value.Split('_')[1].ToUpper()) ?? [], - .. currentConfig.Vendors ?? [], - ] - ); - - job.DeprecatedAliases = xml.Descendants() + // Extract the second part from the extension name + // Eg: GL_NV_command_list -> NV + .Select(name => name.Value.Split('_')[1].ToUpper()) + ?? [], + .. config.Vendors ?? [], + ]); + + Job.DeprecatedAliases = xml.Descendants() .Where(x => x.Attribute("deprecated")?.Value == "aliased" && x.Attribute("name") != null ) .Select(x => x.Attribute("name")!.Value) .ToHashSet(); - ReadGroups(xml, job, job.Vendors); + ReadGroups(xml, Job, Job.Vendors); foreach (var typeElement in xml.Elements("registry").Elements("types").Elements("type")) { @@ -349,14 +342,14 @@ .. currentConfig.NonStandardExtensionNomenclature continue; } - job.TypeMap.TryAdd(type, baseType); + Job.TypeMap.TryAdd(type, baseType); } // Add mappings from Flags storage types to FlagBits enums types // We want Flags as the output, but in order to generate everything correctly, // we need to first map Flags to FlagBits, then rename FlagBits back to Flags (this is done in the rewriters). // Without this, ClangSharp will output the Flags types as the integral storage type instead of the enum - var flagsTypesSet = currentConfig.FlagsTypes.ToHashSet(); + var flagsTypesSet = config.FlagsTypes.ToHashSet(); foreach (var typeElement in xml.Elements("registry").Elements("types").Elements("type")) { var typedef = typeElement.Element("type")?.Value; @@ -373,11 +366,11 @@ .. currentConfig.NonStandardExtensionNomenclature continue; } - job.AdditionalTypeRemappings[mapFrom] = mapTo; + Job.AdditionalTypeRemappings[mapFrom] = mapTo; } // Gather information about struct structure type enums - if (currentConfig.StructureTypes.Count != 0) + if (config.StructureTypes.Count != 0) { foreach ( var typeElement in xml.Elements("registry") @@ -400,7 +393,7 @@ var typeElement in xml.Elements("registry") continue; } - if (currentConfig.StructureTypes.Contains(memberType)) + if (config.StructureTypes.Contains(memberType)) { var memberName = memberElement.Element("name")?.Value; if (memberName == null) @@ -414,7 +407,7 @@ var typeElement in xml.Elements("registry") continue; } - job.StructureTypeMembers.Add( + Job.StructureTypeMembers.Add( structName, new StructureTypeMember() { @@ -432,8 +425,12 @@ var typeElement in xml.Elements("registry") /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var jobData = Jobs[ctx.JobKey]; - var currentConfig = jobData.Configuration; + if (Job == null) + { + return; + } + + var currentConfig = Job.Configuration; var proj = ctx.SourceProject; if (proj == null) @@ -442,7 +439,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) } // Rewrite phase 1 - var rewriter1 = new RewriterPhase1(jobData, logger); + var rewriter1 = new RewriterPhase1(Job, logger); foreach (var docId in proj.DocumentIds) { var doc = @@ -458,13 +455,13 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { proj = proj.AddDocument( Path.GetFileName(filePath), - node, + documentFactory.PopulateDocument(node), filePath: proj.FullPath(filePath) ).Project; } // Rewrite phase 2 - var rewriter2 = new RewriterPhase2(jobData, rewriter1); + var rewriter2 = new RewriterPhase2(Job, rewriter1); foreach (var docId in proj.DocumentIds) { var doc = @@ -478,11 +475,11 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) // Rewrite phase 3 { // OpenCL uses lower snake case names - var vendorSuffixComparison = jobData.IsLikelyOpenCL + var vendorSuffixComparison = Job.IsLikelyOpenCL ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; - var rewriter3 = new RewriterPhase3(jobData, currentConfig, vendorSuffixComparison); + var rewriter3 = new RewriterPhase3(Job, currentConfig, vendorSuffixComparison); foreach (var docId in proj.DocumentIds) { var doc = @@ -496,7 +493,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) } // Rewrite phase 4 - var rewriter4 = new RewriterPhase4(jobData); + var rewriter4 = new RewriterPhase4(Job); foreach (var docId in proj.DocumentIds) { var doc = @@ -526,8 +523,6 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) /// public Task> BeforeScrapeAsync(string key, List rsps) { - var job = Jobs[key]; - rsps = rsps.Select(rsp => rsp with { @@ -535,7 +530,7 @@ rsp with { RemappedNames = rsp .GeneratorConfiguration.RemappedNames.Concat( - job.AdditionalTypeRemappings + Job.AdditionalTypeRemappings ) .ToDictionary(), }, @@ -721,7 +716,8 @@ private void EvaluateFeatures( )[0] ) .ThenBy(x => x.Attribute("number")?.Value, VersionComparer.Instance) - .ToArray() ?? []; + .ToArray() + ?? []; // Record the variations declared within those elements (OpenGL only atm) var profileVariations = new Dictionary>(); @@ -795,7 +791,8 @@ .. profileVariations.TryGetValue(variant, out var v) ? v : [], ?.Value.Split( _listSeparators, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries - ) ?? []; + ) + ?? []; // Evaluate all of the elements. for (var i = 0; i < allApis.Length; i++) @@ -1268,7 +1265,8 @@ var ext in xml.Element("registry")?.Element("extensions")?.Elements("extension") ?.Value.Split( _listSeparators, StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries - ) ?? []; + ) + ?? []; foreach (var supportedApi in supportedApis) { @@ -1362,12 +1360,6 @@ public void Transform( Action next ) { - if (ctx.JobKey is null) - { - next(current); - return; - } - current.AttributeLists.GetNativeFunctionInfo(out _, out var entryPoint, out _); entryPoint ??= current.Identifier.ToString(); foreach (var meth in TransformToConstants(current, ctx, entryPoint)) @@ -1383,8 +1375,6 @@ private IEnumerable TransformToConstants( string entryPoint ) { - Debug.Assert(ctx.JobKey is not null); - // This will contain the changed parameters. Note that the changes from the previous passes (see below) are kept // in this list so that we don't create differences between fully grouped pointer overloads vs partially grouped // pointer overloads. In addition, we want to keep things like the Constant DSL type even if we're overloading @@ -1403,7 +1393,7 @@ string entryPoint var newRet = GetTypeTransformation( entryPoint, ":return", - Jobs[ctx.JobKey], + Job, ret, pass, ref anyNonTrivialParameters @@ -1423,7 +1413,7 @@ param.Type is null || GetTypeTransformation( entryPoint, param.Identifier.ToString(), - Jobs[ctx.JobKey], + Job, param.Type, pass, ref anyNonTrivialParameters @@ -1577,16 +1567,13 @@ otherGroup is not null /// public bool TryGetChildSymbolMetadata( - string? jobKey, string nativeName, string childNativeName, [NotNullWhen(true)] out SymbolConstraints? metadata ) { if ( - jobKey is not null - && Jobs[jobKey] - .Annotations.TryGetValue((nativeName, childNativeName), out var annotation) + Job.Annotations.TryGetValue((nativeName, childNativeName), out var annotation) && annotation.Usage is not null ) { @@ -1600,30 +1587,24 @@ jobKey is not null /// public bool TryGetChildSymbolMetadata( - string? jobKey, string nativeName, string childNativeName, [NotNullWhen(true)] out IEnumerable? metadata - ) => TryGetSymbolMetadata(jobKey, childNativeName, out metadata); + ) => TryGetSymbolMetadata(childNativeName, out metadata); /// public bool TryGetSymbolMetadata( - string? jobKey, string nativeName, [NotNullWhen(true)] out IEnumerable? metadata ) { - if ( - jobKey is null - || !Jobs.TryGetValue(jobKey, out var job) - || job.SupportedApiProfiles is null - ) + if (Job.SupportedApiProfiles is null) { metadata = null; return false; } - if (!job.SupportedApiProfiles.TryGetValue(nativeName, out var mdList)) + if (!Job.SupportedApiProfiles.TryGetValue(nativeName, out var mdList)) { metadata = null; return false; @@ -1742,8 +1723,7 @@ private class RewriterPhase1(JobData job, ILogger logger) : CSharpSyntaxRewriter .Distinct() .Select((x, i) => (x, i)) .LastOrDefault() - is - (var n, 0) + is (var n, 0) ? n : null; @@ -1786,9 +1766,9 @@ private class RewriterPhase1(JobData job, ILogger logger) : CSharpSyntaxRewriter ) .WithAttributeLists(attributes) .WithBaseList( - BaseList( - [SimpleBaseType(baseTypeSyntax)] - ) + BaseList([ + SimpleBaseType(baseTypeSyntax), + ]) ) .WithMembers( SeparatedList( @@ -1928,13 +1908,11 @@ public override SyntaxNode VisitIdentifierName(IdentifierNameSyntax node) => if (node.Members.Any(m => job.DeprecatedAliases.Contains(m.Identifier.ValueText))) { // Remove deprecated aliases - node = node.WithMembers( - [ - .. node.Members.Where(m => - !job.DeprecatedAliases.Contains(m.Identifier.ValueText) - ), - ] - ); + node = node.WithMembers([ + .. node.Members.Where(m => + !job.DeprecatedAliases.Contains(m.Identifier.ValueText) + ), + ]); } if ( @@ -1963,13 +1941,11 @@ .. node.Members.Where(m => { // Remove deprecated aliases node = node.WithDeclaration( - node.Declaration.WithVariables( - [ - .. node.Declaration.Variables.Where(v => - !job.DeprecatedAliases.Contains(v.Identifier.ValueText) - ), - ] - ) + node.Declaration.WithVariables([ + .. node.Declaration.Variables.Where(v => + !job.DeprecatedAliases.Contains(v.Identifier.ValueText) + ), + ]) ); if (node.Declaration.Variables.Count == 0) @@ -2287,39 +2263,37 @@ public override SyntaxNode VisitEnumDeclaration(EnumDeclarationSyntax node) && canTrimImpliedVendors ) { - node = node.WithMembers( - [ - .. node.Members.Select(member => - { - var memberName = member.Identifier.Text; - - if ( - memberName.EndsWith(typeVendor, vendorSuffixComparison) - && CanIdentifySuffix(memberName, typeVendor.Length) - ) - { - // Identify for trimming - return member.WithAttributeLists( - member.AttributeLists.AddNameAffix( - NameAffixType.Suffix, - NameAffixes.KhronosImpliedVendor, - member.Identifier.Text[^typeVendor.Length..], - true - ) - ); - } + node = node.WithMembers([ + .. node.Members.Select(member => + { + var memberName = member.Identifier.Text; - // Default behavior - Identify, but not for trimming + if ( + memberName.EndsWith(typeVendor, vendorSuffixComparison) + && CanIdentifySuffix(memberName, typeVendor.Length) + ) + { + // Identify for trimming return member.WithAttributeLists( - ProcessAndGetNewAttributes( - member.AttributeLists, - member.Identifier, - false + member.AttributeLists.AddNameAffix( + NameAffixType.Suffix, + NameAffixes.KhronosImpliedVendor, + member.Identifier.Text[^typeVendor.Length..], + true ) ); - }), - ] - ); + } + + // Default behavior - Identify, but not for trimming + return member.WithAttributeLists( + ProcessAndGetNewAttributes( + member.AttributeLists, + member.Identifier, + false + ) + ); + }), + ]); } else { @@ -2403,13 +2377,11 @@ public override SyntaxNode VisitStructDeclaration(StructDeclarationSyntax node) initializerAdded = true; members.Add( memberFieldNode.WithDeclaration( - memberFieldNode.Declaration.WithVariables( - [ - .. memberFieldNode.Declaration.Variables.Select(variable => - variable.WithInitializer(initializer) - ), - ] - ) + memberFieldNode.Declaration.WithVariables([ + .. memberFieldNode.Declaration.Variables.Select(variable => + variable.WithInitializer(initializer) + ), + ]) ) ); } diff --git a/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs b/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs index d1ec8cbfcd..2619df9c02 100644 --- a/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs +++ b/sources/SilkTouch/SilkTouch/Mods/PrettifyNames.cs @@ -3,12 +3,10 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Text; 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.Naming; @@ -21,11 +19,9 @@ namespace Silk.NET.SilkTouch.Mods; /// Does not support nested types. Please use before this mod. /// Note that despite this, some initial work has been done to add nested type support so that it can be added when necessary. /// -[ModConfiguration] -public class PrettifyNames( - ILogger logger, - IOptionsSnapshot config -) : IMod, IResponseFileMod +public class PrettifyNames(ILogger logger, PrettifyNames.Configuration config) + : IMod, + IResponseFileMod { /// /// The configuration for the mod. @@ -112,7 +108,6 @@ public record NameAffixConfiguration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var cfg = config.Get(ctx.JobKey); if (ctx.SourceProject is null) { return; @@ -128,15 +123,15 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) // Process the names var nameProcessorContext = new NameProcessorContext(visitor); { - var namePrettifier = new NamePrettifier(cfg.LongAcronymThreshold); + var namePrettifier = new NamePrettifier(config.LongAcronymThreshold); // Define name processors var nameProcessors = new INameProcessor[] { - new HandleOverridesProcessor(cfg.NameOverrides), + new HandleOverridesProcessor(config.NameOverrides), new StripAffixesProcessor(visitor), new PrettifyProcessor(namePrettifier), - new ReapplyAffixesProcessor(visitor, namePrettifier, cfg.Affixes), + new ReapplyAffixesProcessor(visitor, namePrettifier, config.Affixes), new PrefixIfStartsWithNumberProcessor(), new ResolveConflictsProcessor(visitor, logger), new OutputFinalNamesProcessor(), diff --git a/sources/SilkTouch/SilkTouch/Mods/StripAttributes.cs b/sources/SilkTouch/SilkTouch/Mods/StripAttributes.cs index c043f71293..d18a0ce5f0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/StripAttributes.cs +++ b/sources/SilkTouch/SilkTouch/Mods/StripAttributes.cs @@ -2,8 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. 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; @@ -11,8 +11,7 @@ namespace Silk.NET.SilkTouch.Mods; /// /// Strips matching attributes from the generated bindings. /// -[ModConfiguration] -public class StripAttributes(IOptionsSnapshot cfg) : IMod +public class StripAttributes(StripAttributes.Configuration config) : IMod { /// /// mod configuration. @@ -28,8 +27,6 @@ public record Configuration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var config = cfg.Get(ctx.JobKey); - var proj = ctx.SourceProject; if (proj == null) { @@ -56,7 +53,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) ctx.SourceProject = proj; } - private class Rewriter(Configuration config) : ModCSharpSyntaxRewriter + private class Rewriter(Configuration config) : CSharpSyntaxRewriter { private SyntaxList StripAttributes( SyntaxList attributeLists diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformEnums.cs b/sources/SilkTouch/SilkTouch/Mods/TransformEnums.cs index ffcf892258..3e1b8d8fa7 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformEnums.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformEnums.cs @@ -6,7 +6,6 @@ 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; @@ -14,8 +13,7 @@ namespace Silk.NET.SilkTouch.Mods; /// /// Contains various transformations related to enums. /// -[ModConfiguration] -public class TransformEnums(IOptionsSnapshot cfg) : IMod +public class TransformEnums(TransformEnums.Configuration config) : IMod { /// /// The preferred backing type for enums. @@ -169,7 +167,6 @@ public bool IsMemberMatch(ISymbol? enumMember) /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var config = cfg.Get(ctx.JobKey); var removeMemberFilters = config .RemoveMembers.Select(c => new EnumMemberFilter(c)) .ToList(); diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs index e106d5ad98..88403d0dbf 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Silk.NET.SilkTouch.Mods.Transformation; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -11,45 +12,23 @@ 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, DocumentFactory documentFactory) + : CSharpSyntaxRewriter, + IMod, + ITransformationContext { - private ThreadLocal _jobKey = new(); - - /// - /// Configuration for the and related code. - /// - public class Configuration - { - /// - /// Whether all integer return types should be treated as potentially boolean. - /// - public required bool IntReturnsMaybeBool { get; init; } + /// + public MethodDeclarationSyntax? Original { get; set; } - /// - /// Types to treat as boolean and their boolean schemes if different from the default. - /// - public Dictionary BoolTypes { get; init; } = []; - } + /// + public IFunctionTransformer[] Transformers { get; set; } = []; /// - public override string? JobKey - { - get => _jobKey.Value; - set - { - if (value is null) - { - return; - } - _jobKey.Value = value; - } - } + public DocumentFactory DocumentFactory { get; set; } = documentFactory; /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - _jobKey.Value = ctx.JobKey; var proj = ctx.SourceProject; foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) { @@ -72,7 +51,6 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) cd.Members.Where(x => x is not MethodDeclarationSyntax) .Concat( ft.GetTransformedFunctions( - _jobKey.Value, cd.Members.OfType(), this ) @@ -90,7 +68,6 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) id.Members.Where(x => x is not MethodDeclarationSyntax) .Concat( ft.GetTransformedFunctions( - _jobKey.Value, id.Members.OfType(), this ) diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformHandles.cs b/sources/SilkTouch/SilkTouch/Mods/TransformHandles.cs index a8f223aa22..fba11374b6 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformHandles.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformHandles.cs @@ -28,16 +28,15 @@ namespace Silk.NET.SilkTouch.Mods; /// /// The `Handle` suffix is not applied until executes. /// -[ModConfiguration] public class TransformHandles( - IOptionsSnapshot config, + TransformHandles.Configuration configuration, ILogger logger ) : IMod { /// /// The configuration for the mod. /// - public class Config + public class Configuration { /// /// Whether the DSL (i.e. nullptr) should be usable with handle types. @@ -48,7 +47,6 @@ public class Config /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var cfg = config.Get(ctx.JobKey); var project = ctx.SourceProject; if (project == null) { @@ -100,7 +98,7 @@ [new PointerDimensionReductionTransformer()], project = ctx.SourceProject; // Use document IDs from earlier - var handleTypeRewriter = new HandleTypeRewriter(cfg.UseDsl); + var handleTypeRewriter = new HandleTypeRewriter(configuration.UseDsl); foreach (var documentId in handleTypeDocumentIds) { var document = diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs b/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs index 55ee816c4b..f9d26dc4c3 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformProperties.cs @@ -4,7 +4,6 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Options; using Silk.NET.SilkTouch.Mods.Transformation; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; @@ -25,8 +24,7 @@ namespace Silk.NET.SilkTouch.Mods; /// to be akin to booleans to use the MaybeBool type. /// This functionality is based on . /// -[ModConfiguration] -public class TransformProperties(IOptionsSnapshot cfg) : IMod +public class TransformProperties(TransformProperties.Configuration config) : IMod { /// /// Configuration for the . @@ -42,8 +40,6 @@ public class Configuration /// public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { - var config = cfg.Get(ctx.JobKey); - var rw = new Rewriter(config); var proj = ctx.SourceProject; foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs index 2a8c27462c..4ede8fcdd0 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/ArrayParameterTransformer.cs @@ -31,11 +31,6 @@ Action next // Keep the original in the loop: next(decl); - if (ctx.Transformers is null) - { - return; - } - decl.AttributeLists.GetNativeFunctionInfo(out _, out var entryPoint, out _); entryPoint ??= decl.Identifier.ToString(); @@ -75,8 +70,7 @@ decl.ReturnType is not PredefinedTypeSyntax pt // 1. Get all count parameters decl.EnumerateCountParameterInfo( ctx.Transformers.OfType>(), - entryPoint, - ctx.JobKey + entryPoint ) .Select(x => ( @@ -106,8 +100,7 @@ decl.ReturnType is not PredefinedTypeSyntax pt { ((ptrParam, _, ptrCount), countParamNo) = decl.EnumerateSymbolConstraints( ctx.Transformers.OfType>(), - entryPoint, - ctx.JobKey + entryPoint ) .Where(x => x.ParamConstraints?.CommonUsage?.StaticCount == 1) .Select((x, i) => (x, i)) diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs index bfba52c913..76fe222552 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/BoolTransformer.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis.CSharp.Syntax; -using Microsoft.Extensions.Options; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods.Transformation; @@ -10,9 +9,24 @@ namespace Silk.NET.SilkTouch.Mods.Transformation; /// /// A transformer transforming parameters that are recognised to be akin to booleans to use the MaybeBool type. /// -public class BoolTransformer(IOptionsSnapshot options) - : IFunctionTransformer +public class BoolTransformer(BoolTransformer.Configuration config) : IFunctionTransformer { + /// + /// Configuration for the . + /// + public class Configuration + { + /// + /// Whether all integer return types should be treated as potentially boolean. + /// + public bool IntReturnsMaybeBool { get; init; } + + /// + /// Types to treat as boolean and their boolean schemes if different from the default. + /// + public Dictionary BoolTypes { get; init; } = []; + } + /// public void Transform( MethodDeclarationSyntax current, @@ -21,13 +35,12 @@ Action next ) { var ogCurrent = current; - var cfg = options.Get(ctx.JobKey); string? retBoolScheme = null; TypeSyntax? newRetType = null; var retNative = current.GetNativeReturnTypeName() ?? current.ReturnType.ToString(); if ( - (current.ReturnType.IsInteger() && cfg.IntReturnsMaybeBool) - || cfg.BoolTypes.TryGetValue(retNative, out retBoolScheme) + (current.ReturnType.IsInteger() && config.IntReturnsMaybeBool) + || config.BoolTypes.TryGetValue(retNative, out retBoolScheme) || (retNative == "bool" && current.ReturnType.ToString().Trim() != "bool") // stdbool.h, hopefully... ) { @@ -45,7 +58,7 @@ Action next paramNative is not null && param.Type is not null && ( - cfg.BoolTypes.TryGetValue(paramNative, out paramBoolScheme) + config.BoolTypes.TryGetValue(paramNative, out paramBoolScheme) || (paramNative == "bool" && param.Type.ToString().Trim() != "bool") // stdbool.h, hopefully... ) ) diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs index 8b5b0e15ff..dd487b4c0f 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/FunctionTransformer.cs @@ -1,9 +1,6 @@ // 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.Runtime.InteropServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; @@ -20,7 +17,7 @@ namespace Silk.NET.SilkTouch.Mods.Transformation; /// The function transformers. /// The logger. public class FunctionTransformer( - IEnumerable> transformers, + IEnumerable transformers, ILogger logger ) { @@ -28,7 +25,6 @@ ILogger logger /// Transforms all of the given functions, optionally including the original function signatures in the returned /// transformed functions. /// - /// The job key. /// The functions. /// The wider context for this function transformation operation. /// @@ -36,7 +32,6 @@ ILogger logger /// /// The transformed (and optionally original) functions. public IEnumerable GetTransformedFunctions( - string? key, IEnumerable functions, ITransformationContext ctx, bool includeOriginal = true @@ -48,7 +43,7 @@ public IEnumerable GetTransformedFunctions( var discrims = new HashSet(); // Aggregate all the transformers into one delegate - ctx.Transformers = transformers.SelectMany(x => x.Get(key)).ToArray(); + ctx.Transformers = transformers.ToArray(); var transform = ctx.Transformers.Aggregate< IFunctionTransformer, Action @@ -209,7 +204,7 @@ meth.Body.Statements[0] as ExpressionStatementSyntax ctx.Original = null; } - ctx.Transformers = null; + ctx.Transformers = []; return ret; } diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/ITransformationContext.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/ITransformationContext.cs index 3758c25fd5..35314e5070 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/ITransformationContext.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/ITransformationContext.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis.CSharp.Syntax; -using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace Silk.NET.SilkTouch.Mods.Transformation; @@ -12,33 +11,21 @@ namespace Silk.NET.SilkTouch.Mods.Transformation; /// public interface ITransformationContext { - /// - /// The job key. - /// - string? JobKey { get; set; } - /// /// The original method signature. /// - MethodDeclarationSyntax? Original { get; set; } + public MethodDeclarationSyntax? Original { get; set; } /// /// The transformers in use. /// - IFunctionTransformer[]? Transformers { get; set; } - - /// - /// Adds a namespace import to the resultant syntax tree. - /// - /// The dot-separated namespace. - /// Whether it was added. - bool AddUsing(string str) => - AddUsing(UsingDirective(ModUtils.NamespaceIntoIdentifierName(str))); + public IFunctionTransformer[] Transformers { get; set; } /// - /// Adds a using directive to the resultant syntax tree. + /// The document factory in use. /// - /// The directive. - /// Whether it was added. - bool AddUsing(UsingDirectiveSyntax use); + /// + /// Main purpose is for adding using statements. + /// + public DocumentFactory DocumentFactory { get; set; } } diff --git a/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs b/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs index fa3b9abaa5..5af94e4cff 100644 --- a/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs +++ b/sources/SilkTouch/SilkTouch/Mods/Transformation/PtrRefTransformer.cs @@ -1,12 +1,8 @@ // 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; -using System.Linq; using System.Text.RegularExpressions; -using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -17,12 +13,10 @@ namespace Silk.NET.SilkTouch.Mods.Transformation; /// /// A transformer that converts between raw pointers and Silk DSL pointer types. /// -public sealed partial class PtrRefTransformer() - : ModCSharpSyntaxRewriter(true), - IFunctionTransformer +public sealed partial class PtrRefTransformer() : CSharpSyntaxRewriter(true), IFunctionTransformer { private const int MaxIndirections = 3; - private ThreadLocal _ctx = new(); + private ITransformationContext? _ctx; /// public void Transform( @@ -31,7 +25,7 @@ public void Transform( Action next ) { - _ctx.Value = ctx; + _ctx = ctx; if (Visit(current) is MethodDeclarationSyntax modded) { next(modded); @@ -41,7 +35,7 @@ Action next next(current); } - _ctx.Value = null; + _ctx = null; } private static bool ShouldConvertToDSL(TypeSyntax syn) => @@ -186,7 +180,7 @@ is not MethodDeclarationSyntax methWithReplacementsButNoFixed ) ) .AddMaxOpt(); - _ctx.Value?.AddUsing("System.Runtime.CompilerServices"); + _ctx?.DocumentFactory.AddUsing("System.Runtime.CompilerServices"); // Generate the fixed blocks for the "inner idents" foreach (var param in paramsToChange) diff --git a/sources/SilkTouch/SilkTouch/Program.cs b/sources/SilkTouch/SilkTouch/Program.cs deleted file mode 100644 index af32921b38..0000000000 --- a/sources/SilkTouch/SilkTouch/Program.cs +++ /dev/null @@ -1,152 +0,0 @@ -// 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 Microsoft.Build.Locator; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Console; -using Silk.NET.SilkTouch.Caching; - -namespace Silk.NET.SilkTouch; - -internal class Program -{ - private static Option LoggingOption { get; } = - new(["--log-level", "-l"], () => LogLevel.Information); - - private static Option SkipOption { get; } = - new(["--skip", "-s"], Array.Empty) - { - Description = "A list of job names to skip. Takes precedence over --only.", - Arity = ArgumentArity.ZeroOrMore, - }; - - private static Option OnlyOption { get; } = - new(new[] { "--only", "-o" }, Array.Empty) - { - Description = "A list of job names to run.", - Arity = ArgumentArity.ZeroOrMore, - }; - - private static Argument ConfigsArgument { get; } = - new("configs") - { - Description = "Path(s) to JSON SilkTouch configuration(s)", - Arity = ArgumentArity.OneOrMore, - }; - - private static Argument ConfigOverridesArgument { get; } = - new("overrides", Array.Empty) - { - Description = - "Arguments recognisable by Microsoft.Extensions.Configuration.CommandLine to override JSON configuration items.", - Arity = ArgumentArity.ZeroOrMore, - }; - - private static Option JobsOption { get; } = - new(new[] { "--max-jobs", "-j" }, () => Environment.ProcessorCount) - { - Description = "Maximum number of parallel ClangSharp executions.", - }; - - public static async Task Main(string[] args) - { - var rootCommand = new RootCommand - { - LoggingOption, - SkipOption, - OnlyOption, - ConfigsArgument, - ConfigOverridesArgument, - JobsOption, - }; - - rootCommand.SetHandler(async ctx => - { - // Create the ConfigurationBuilder with support for env var & command line overrides - var cb = new ConfigurationBuilder() - .AddEnvironmentVariables(source => source.Prefix = "SILKDOTNET_") - .AddCommandLine(ctx.ParseResult.GetValueForArgument(ConfigOverridesArgument)); - - // Add the JSON files to the ConfigurationBuilder - var jsons = ctx.ParseResult.GetValueForArgument(ConfigsArgument); - cb = jsons.Aggregate( - cb, - (current, file) => current.AddJsonFile(Path.GetFullPath(file)) - ); - var config = cb.Build(); - if (jsons.Length == 1) - { - FileSystemCacheProvider.CommonDir = Path.GetFullPath( - (Path.GetDirectoryName(jsons[0]) is (null or not "") and var path ? path : ".") - ?? Environment.CurrentDirectory - ); - } - - // Register MSBuild - MSBuildLocator.RegisterDefaults(); - - var sp = new ServiceCollection() - .AddLogging(builder => - { - builder.AddSimpleConsole(opts => - { - opts.SingleLine = true; - opts.ColorBehavior = Console.IsOutputRedirected - ? LoggerColorBehavior.Disabled - : LoggerColorBehavior.Default; - opts.IncludeScopes = false; - }); - builder.SetMinimumLevel(ctx.ParseResult.GetValueForOption(LoggingOption)); - }) - .AddOptions() - .AddSilkTouch(config) - .BuildServiceProvider(); - - var jobsToRun = new HashSet( - ctx.ParseResult.GetValueForOption(OnlyOption) ?? [], - StringComparer.OrdinalIgnoreCase - ); - - var jobsToSkip = new HashSet( - ctx.ParseResult.GetValueForOption(SkipOption) ?? [], - StringComparer.OrdinalIgnoreCase - ); - - var logger = sp.GetRequiredService>(); - var generator = sp.GetRequiredService(); - - await Parallel.ForEachAsync( - config - .GetSection("Jobs") - .GetChildren() - .Where(section => - { - if (jobsToSkip.Contains(section.Key)) - { - return false; - } - - return jobsToRun.Count == 0 || jobsToRun.Contains(section.Key); - }), - async (job, ct) => - { - await generator.RunAsync( - job.Key, - job, - // TODO parallelism configuration - // ctx.ParseResult.GetValueForOption(jobs), - ct - ); - } - ); - - // Workaround for dangling logging/socket engine threads - Environment.Exit(0); - }); - - await rootCommand.InvokeAsync(args); - } -} diff --git a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs b/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs deleted file mode 100644 index 47e9c85fb4..0000000000 --- a/sources/SilkTouch/SilkTouch/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,205 +0,0 @@ -// 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.Reflection; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Options; -using Silk.NET.SilkTouch.Caching; -using Silk.NET.SilkTouch.Clang; -using Silk.NET.SilkTouch.Mods; -using Silk.NET.SilkTouch.Mods.Bakery; -using Silk.NET.SilkTouch.Mods.Transformation; -using Silk.NET.SilkTouch.Naming; -using Silk.NET.SilkTouch.Sources; - -namespace Silk.NET.SilkTouch; - -/// -/// Provides the method. -/// -public static class ServiceCollectionExtensions -{ - private static readonly MethodInfo s_configure; - - static ServiceCollectionExtensions() - { - var cnf = typeof(OptionsConfigurationServiceCollectionExtensions).GetMethod( - nameof(OptionsConfigurationServiceCollectionExtensions.Configure), - 1, - new[] { typeof(IServiceCollection), typeof(string), typeof(IConfiguration) } - ); - - s_configure = - cnf - ?? throw new TypeAccessException( - $"Could not access the {nameof(OptionsConfigurationServiceCollectionExtensions.Configure)} method on " - + nameof(OptionsConfigurationServiceCollectionExtensions) - ); - } - - /// - /// Adds a singleton (and its dependencies) to the given - /// , using the root SilkTouch configuration provided. - /// - /// - /// It is expected that and - /// is used before this call. - /// - /// - /// The service collection to make the SilkTouch types available on. The service collection shall have the following - /// types added to it: - /// - /// - /// - /// - /// An appropriate implementation of - /// Mod implementations referenced in the configurations - /// - /// - /// types for and the - /// s for any of the loaded mods. - /// - /// - /// - /// - /// - /// A configuration structure that: - /// - /// - /// - /// Contains a root "Jobs" section, representing a dictionary of string keys to - /// values. - /// - /// - /// - /// - /// In each within "Jobs", contains a subsection for each of the - /// referenced that has a . - /// - /// - /// - /// - /// The modified service collection (for chaining purposes). - public static IServiceCollection AddSilkTouch( - this IServiceCollection services, - IConfiguration config - ) - { - // References for our use of Microsoft.Extensions.Configuration/DependencyInjection: - // - https://stevetalkscode.co.uk/using-iconfigureoptions - // - https://stevetalkscode.co.uk/configuration-bridging-part-2 - // - https://andrewlock.net/configuring-named-options-using-iconfigurenamedoptions-and-configureall/ - // - https://andrewlock.net/how-to-register-a-service-with-multiple-interfaces-for-in-asp-net-core-di/ - // - https://discordapp.com/channels/143867839282020352/663803973119115264/1129546023388332075 (C# Discord) - - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.TryAddSingleton(s => - s.GetRequiredService() - ); - services.AddSingleton(); - services.AddSingleton(s => s.GetRequiredService()); - services.AddSingleton(typeof(IJobDependency<>), typeof(JobDependencies.Global<>)); - services.TryAddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - services.TryAddSingleton(); - if (OperatingSystem.IsWindows()) - { - services.AddSingleton(); - } - else if (OperatingSystem.IsMacOS()) - { - services.AddSingleton(); - } - else - { - services.AddSingleton(); - } - - // First pass to build the config and load the mods - var loadedMods = new Dictionary(); - foreach (var job in config.GetSection("Jobs").GetChildren()) - { - var mods = job.GetSection("Mods").Get() ?? Array.Empty(); - services.Configure(job.Key, job); - foreach (var m in mods) - { - var loadedMod = ModLoader.LoadModByName(m); - if (loadedMod is null || services.Any(x => x.ImplementationType == loadedMod)) - { - continue; - } - - loadedMods[m] = loadedMod; - // TODO else log? - - if (ModConfigurationAttribute.GetConfigurationType(loadedMod) is { } cfgType) - { - s_configure - .MakeGenericMethod(cfgType) - .Invoke(null, new object?[] { services, job.Key, job.GetSection(m) }); - } - } - } - - // Second pass to register the mods and generator with DI - // "order is important" according to this blog post: - // https://andrewlock.net/configuring-named-options-using-iconfigurenamedoptions-and-configureall/ - services.AddSingleton(); - foreach (var job in config.GetSection("Jobs").GetChildren()) - { - var mods = job.GetSection("Mods").Get() ?? Array.Empty(); - foreach (var m in mods) - { - services.AddSingleton(loadedMods[m]); - services.AddSingleton(s => (IMod)s.GetRequiredService(loadedMods[m])); - } - } - - // Some dependencies being made available are conditional to whether they've been specified in the config file. - // We use JobDependencies as indirection so that we can retrieve the service provider and loadedMods from the - // Mod subclass. This then allows DI to make a generic instantiation of the Mod subclass without requiring a - // factory. - services.AddSingleton(s => new JobDependencies(loadedMods, s)); - services.AddSingleton(typeof(IJobDependency<>), typeof(JobDependencies.Mod<>)); - - // Third pass to add the IConfigureOptions/IConfigureNamedOptions - foreach (var job in config.GetSection("Jobs").GetChildren()) - { - var mods = job.GetSection("Mods").Get() ?? Array.Empty(); - foreach (var m in mods) - { - if ( - ModConfigurationAttribute.GetConfigurationType(loadedMods[m]) is not { } cfgType - ) - { - continue; - } - - var cfgOpts = typeof(IConfigureOptions<>).MakeGenericType(cfgType); - if (loadedMods[m].IsAssignableTo(cfgOpts)) - { - services.AddSingleton(cfgOpts, s => (IMod)s.GetRequiredService(loadedMods[m])); - } - - cfgOpts = typeof(IConfigureNamedOptions<>).MakeGenericType(cfgType); - if (loadedMods[m].IsAssignableTo(cfgOpts)) - { - services.AddSingleton(cfgOpts, s => (IMod)s.GetRequiredService(loadedMods[m])); - } - } - } - - return services; - } -} diff --git a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj index f8e9022dd4..afc4f29d09 100644 --- a/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj +++ b/sources/SilkTouch/SilkTouch/Silk.NET.SilkTouch.csproj @@ -1,20 +1,27 @@ - net10.0 - Exe - $(NETCoreSdkRuntimeIdentifier) true + + - - + + @@ -37,5 +44,4 @@ - diff --git a/sources/SilkTouch/SilkTouch/SilkTouchConfiguration.cs b/sources/SilkTouch/SilkTouch/SilkTouchConfiguration.cs index 0f082b22f4..ca6807f5ea 100644 --- a/sources/SilkTouch/SilkTouch/SilkTouchConfiguration.cs +++ b/sources/SilkTouch/SilkTouch/SilkTouchConfiguration.cs @@ -1,8 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; - namespace Silk.NET.SilkTouch; /// @@ -25,15 +23,14 @@ public record SilkTouchConfiguration /// public string? TestProject { get; init; } - /// - /// The mods to load for generation. If there are no mods, this tool is basically equivalent to running - /// ClangSharpPInvokeGenerator directly. - /// - public string[]? Mods { get; init; } - /// /// A path to the license header to use if one wasn't added by other means (e.g. a license header specified in a /// response file) /// public string? DefaultLicenseHeader { get; init; } + + /// + /// The default namespace to be used by generated documents. + /// + public string? DefaultNamespace { get; init; } } diff --git a/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs b/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs deleted file mode 100644 index 83b97ad0e1..0000000000 --- a/sources/SilkTouch/SilkTouch/SilkTouchGenerator.cs +++ /dev/null @@ -1,137 +0,0 @@ -// 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; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; -using Silk.NET.SilkTouch.Mods; -using Silk.NET.SilkTouch.Sources; -using Diagnostic = ClangSharp.Diagnostic; - -namespace Silk.NET.SilkTouch; - -/// -/// The main entry-point class for SilkTouch. -/// -/// The logger. -/// The mods to use. -/// The provider of s. -/// The user path input resolver. -public class SilkTouchGenerator( - ILogger logger, - IEnumerable mods, - IModContextProvider modContextProvider, - IInputResolver inputResolver -) -{ - private AsyncLocal _jobConfig = new(); - - /// - /// Gets the loaded mods for this generator instance. - /// - public IReadOnlyList Mods { get; } = mods.ToArray(); - - /// - /// The current job. - /// - public SilkTouchConfiguration? Current => _jobConfig.Value; - - /// - /// Generates binding syntax trees per the given configuration. - /// - /// The name of the current job (used as a configuration key). - /// The configuration, expected to be stored as Jobs:{key}. - /// Cancellation token (if any) - /// The generated bindings' syntax trees. - public async Task RunAsync( - string key, - IConfigurationSection jobConfig, - CancellationToken ct = default - ) - { - var sw = Stopwatch.StartNew(); - var job = - jobConfig.Get() - ?? throw new InvalidOperationException("Configuration was null"); - - // Resolve any relative paths in the job configuration. - job = await inputResolver.Resolve(job); - _jobConfig.Value = job; - - // Prepare the mods - var jobMods = - job.Mods?.Select(x => Mods.First(y => y.GetType().Name == x)).ToArray() - ?? Array.Empty(); - - var ctx = await modContextProvider.GetContextAsync(key, jobConfig, ct); - - // Just in case a mod gets naughty and tries to modify at the initialization stage. - var srcProj = ctx.SourceProject; - var testProj = ctx.TestProject; - - // Initialize the mods - foreach (var jobMod in jobMods) - { - logger.LogDebug("Using mod {0} for {1}", jobMod.GetType().Name, key); - await jobMod.InitializeAsync(ctx, ct); - if (ctx.SourceProject != srcProj || ctx.TestProject != testProj) - { - throw new InvalidOperationException( - $"{jobMod.GetType().Name} illegally generated code at the initialization stage." - ); - } - } - - foreach (var jobMod in jobMods) - { - logger.LogInformation("Executing {} for {}...", jobMod.GetType().Name, key); - await jobMod.ExecuteAsync(ctx, ct); - } - - // Manually dispose so that we don't do this when generation fails (await using is too clever). - await ctx.DisposeAsync(); - - // Output the generated bindings - logger.LogInformation( - "Bindings generation for {} completed in {} seconds.", - key, - sw.Elapsed.TotalSeconds - ); - } - - internal static string GetLongestCommonPrefix(string[] s) - { - var k = s[0].Length; - for (var i = 1; i < s.Length; i++) - { - k = Math.Min(k, s[i].Length); - for (var j = 0; j < k; j++) - { - if (s[i][j] == s[0][j]) - { - continue; - } - - k = j; - break; - } - } - - return s[0][..k]; - } - - internal static string GetLongestCommonPath(IEnumerable s) - { - var ret = GetLongestCommonPrefix( - s.Select(x => Path.GetFullPath(x.Replace('\\', '/').TrimEnd('/'))).ToArray() - ); - Debug.Assert(Directory.Exists(ret)); - return ret; - } -} diff --git a/sources/SilkTouch/SilkTouch/SilkTouchHost.cs b/sources/SilkTouch/SilkTouch/SilkTouchHost.cs new file mode 100644 index 0000000000..0e861d20bf --- /dev/null +++ b/sources/SilkTouch/SilkTouch/SilkTouchHost.cs @@ -0,0 +1,209 @@ +// 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.CommandLine.Invocation; +using Autofac; +using Autofac.Extensions.DependencyInjection; +using Microsoft.Build.Locator; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Console; +using Silk.NET.SilkTouch.Caching; +using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Mods.Bakery; +using Silk.NET.SilkTouch.Sources; + +namespace Silk.NET.SilkTouch; + +/// +/// The main entrypoint for the SilkTouch bindings generator. +/// +public class SilkTouchHost +{ + private static Option LoggingOption { get; } = + new(["--log-level", "-l"], () => LogLevel.Information); + + private static Option SkipOption { get; } = + new(["--skip", "-s"], Array.Empty) + { + Description = "A list of job names to skip. Takes precedence over --only.", + Arity = ArgumentArity.ZeroOrMore, + }; + + private static Option OnlyOption { get; } = + new(["--only", "-o"], Array.Empty) + { + Description = "A list of job names to run.", + Arity = ArgumentArity.ZeroOrMore, + }; + + private static Option JobsOption { get; } = + new(["--max-jobs", "-j"], () => Environment.ProcessorCount) + { + Description = "Maximum number of parallel jobs.", + }; + + private readonly Dictionary _jobDefinitions = []; + + private SilkTouchHost() { } + + /// + /// Creates a new . + /// + public static SilkTouchHost Create() => new(); + + /// + /// Defines a SilkTouch bindings generation job. + /// + public SilkTouchHost DefineJob( + string key, + SilkTouchConfiguration config, + Action configure + ) + { + _jobDefinitions.Add(key, new JobDefinition(config, configure)); + return this; + } + + /// + /// Runs the with the provided CLI arguments. + /// + public async Task RunAsync(string[] args) + { + var rootCommand = new RootCommand { LoggingOption, SkipOption, OnlyOption, JobsOption }; + + rootCommand.SetHandler(async ctx => + { + // Register MSBuild + MSBuildLocator.RegisterDefaults(); + + // Build container + ILifetimeScope container; + { + var builder = new ContainerBuilder(); + Configure(builder, ctx); + container = builder.Build(); + } + + var jobKeysToRun = new HashSet( + ctx.ParseResult.GetValueForOption(OnlyOption) ?? [], + StringComparer.OrdinalIgnoreCase + ); + + var jobKeysToSkip = new HashSet( + ctx.ParseResult.GetValueForOption(SkipOption) ?? [], + StringComparer.OrdinalIgnoreCase + ); + + var jobsToRun = _jobDefinitions.Where(job => + { + if (jobKeysToSkip.Contains(job.Key)) + { + return false; + } + + return jobKeysToRun.Count == 0 || jobKeysToRun.Contains(job.Key); + }); + + await Parallel.ForEachAsync( + jobsToRun, + new ParallelOptions + { + MaxDegreeOfParallelism = ctx.ParseResult.GetValueForOption(JobsOption), + }, + async (jobKvp, ct) => + { + using var job = new SilkTouchJob( + jobKvp.Key, + jobKvp.Value.Config, + container, + builder => jobKvp.Value.Configure.Invoke(builder.SilkTouch()) + ); + + await job.RunAsync(ct); + } + ); + + // Workaround for dangling logging/socket engine threads + Environment.Exit(0); + }); + + await rootCommand.InvokeAsync(args); + } + + /// + /// Dependencies defined here will be shared by all jobs. + /// + private void Configure(ContainerBuilder builder, InvocationContext ctx) + { + var services = new ServiceCollection() + .AddLogging(builder => + { + builder.AddSimpleConsole(opts => + { + opts.SingleLine = true; + opts.ColorBehavior = Console.IsOutputRedirected + ? LoggerColorBehavior.Disabled + : LoggerColorBehavior.Default; + opts.IncludeScopes = false; + }); + + builder.SetMinimumLevel(ctx.ParseResult.GetValueForOption(LoggingOption)); + }) + .AddOptions(); + + builder.Populate(services); + + { + builder + .RegisterType() + .As() + .SingleInstance(); + + builder.RegisterType().SingleInstance(); + + builder + .RegisterType() + .AsSelf() + .AsImplementedInterfaces() + .SingleInstance(); + + builder.RegisterType().As().SingleInstance(); + + builder.RegisterType().As().SingleInstance(); + + builder.RegisterType().As().SingleInstance(); + + builder.RegisterType().As().SingleInstance(); + + if (OperatingSystem.IsWindows()) + { + builder + .RegisterType() + .As() + .SingleInstance(); + } + else if (OperatingSystem.IsMacOS()) + { + builder + .RegisterType() + .As() + .SingleInstance(); + } + else + { + builder + .RegisterType() + .As() + .SingleInstance(); + } + } + } + + private record JobDefinition( + SilkTouchConfiguration Config, + Action Configure + ); +} diff --git a/sources/SilkTouch/SilkTouch/SilkTouchJob.cs b/sources/SilkTouch/SilkTouch/SilkTouchJob.cs new file mode 100644 index 0000000000..836885a587 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/SilkTouchJob.cs @@ -0,0 +1,140 @@ +// 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 Autofac; +using Microsoft.Extensions.Logging; +using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Mods.Transformation; +using Silk.NET.SilkTouch.Sources; +using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; + +namespace Silk.NET.SilkTouch; + +/// +/// Represents an individual SilkTouch bindings generation job. +/// +internal class SilkTouchJob : IDisposable +{ + private readonly ILifetimeScope _container; + + private readonly ILogger _logger; + private readonly IInputResolver _inputResolver; + private readonly IModContextFactory _modContextFactory; + private readonly DocumentFactory _documentFactory; + + /// + /// The job key. + /// + public string Key { get; } + + /// + /// The job config. + /// + public SilkTouchConfiguration Config { get; private set; } + + /// + /// Gets the loaded mods for this generator instance. + /// + public IReadOnlyList Mods { get; } + + /// + /// Creates a new . + /// + /// The job key. + /// The job config. + /// The parent container. Should be the one from the . + /// + /// The action that configures the dependency container used by this job. + /// You'll want to register SilkTouch mods during this action. See . + /// + public SilkTouchJob( + string key, + SilkTouchConfiguration config, + ILifetimeScope parentContainer, + Action configure + ) + { + Key = key; + Config = config; + + _logger = parentContainer.Resolve>(); + _inputResolver = parentContainer.Resolve(); + _container = parentContainer.BeginLifetimeScope(builder => + { + // Register default dependencies + builder.RegisterType().SingleInstance(); + builder.RegisterType().SingleInstance(); + + // Register user defined dependencies + configure.Invoke(builder); + }); + + _modContextFactory = _container.Resolve(); + _documentFactory = _container.Resolve(); + Mods = _container.Resolve(); + } + + /// + /// Generates binding syntax trees per the given configuration. + /// + public async Task RunAsync(CancellationToken ct = default) + { + var sw = Stopwatch.StartNew(); + + // Resolve any relative paths in the job configuration. + Config = await _inputResolver.Resolve(Config); + + // Prepare the context + var context = await _modContextFactory.CreateContextAsync(Key, Config, ct); + + // Initialize the document factory + _documentFactory.DefaultNamespace = Config.DefaultNamespace; + if (Config.DefaultLicenseHeader != null) + { + _documentFactory.DefaultHeader = ParseLeadingTrivia( + await File.ReadAllTextAsync(Config.DefaultLicenseHeader, ct) + ); + } + + // Add commonly used namespaces + _documentFactory.AddUsing("System.Runtime.CompilerServices"); + _documentFactory.AddUsing("System.Runtime.InteropServices"); + + // Just in case a mod gets naughty and tries to modify at the initialization stage. + var srcProj = context.SourceProject; + var testProj = context.TestProject; + + // Initialize the mods + foreach (var mod in Mods) + { + _logger.LogDebug("Using mod {0} for {1}", mod.GetType().Name, Key); + await mod.InitializeAsync(context, ct); + if (context.SourceProject != srcProj || context.TestProject != testProj) + { + throw new InvalidOperationException( + $"{mod.GetType().Name} illegally generated code at the initialization stage." + ); + } + } + + foreach (var mod in Mods) + { + _logger.LogInformation("Executing {} for {}...", mod.GetType().Name, Key); + await mod.ExecuteAsync(context, ct); + } + + // Manually dispose so that we don't do this when generation fails (await using is too clever). + await context.DisposeAsync(); + + // Output the generated bindings + _logger.LogInformation( + "Bindings generation for {} completed in {} seconds.", + Key, + sw.Elapsed.TotalSeconds + ); + } + + /// + public void Dispose() => _container.Dispose(); +} diff --git a/sources/SilkTouch/SilkTouch/SilkTouchRegistrationExtensions.cs b/sources/SilkTouch/SilkTouch/SilkTouchRegistrationExtensions.cs new file mode 100644 index 0000000000..3058716f72 --- /dev/null +++ b/sources/SilkTouch/SilkTouch/SilkTouchRegistrationExtensions.cs @@ -0,0 +1,437 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Autofac; +using Autofac.Builder; +using Silk.NET.SilkTouch.Clang; +using Silk.NET.SilkTouch.Mods; +using Silk.NET.SilkTouch.Mods.Transformation; + +namespace Silk.NET.SilkTouch; + +/// +/// Extension methods for simplifying the registration of SilkTouch mods. +/// +public static class SilkTouchRegistrationExtensions +{ + /// + /// Entrypoint to the rest of the SilkTouch registration methods. + /// Begins a . + /// + public static SilkTouchRegistrationContext SilkTouch(this ContainerBuilder builder) => + new(builder); + + // Non-mods + extension(SilkTouchRegistrationContext context) + { + /// + /// Registers the default function transformers. + /// + /// + public SilkTouchRegistrationContext WithDefaultFunctionTransformers( + BoolTransformer.Configuration boolTransformerConfig + ) => + context + .WithPtrRefTransformer() + .WithBoolTransformer(boolTransformerConfig) + .WithArrayParameterTransformer(); + + /// + /// Registers the function transformer. + /// + /// + public SilkTouchRegistrationContext WithPtrRefTransformer() + { + context + .Builder.RegisterType() + .AsImplementedInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the function transformer. + /// + /// + public SilkTouchRegistrationContext WithBoolTransformer( + BoolTransformer.Configuration boolTransformerConfig + ) + { + context + .Builder.RegisterType() + .WithParameter( + new TypedParameter(typeof(BoolTransformer.Configuration), boolTransformerConfig) + ) + .AsImplementedInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the function transformer. + /// + /// + public SilkTouchRegistrationContext WithArrayParameterTransformer() + { + context + .Builder.RegisterType() + .AsImplementedInterfaces() + .SingleInstance(); + + return context; + } + } + + // Mods + extension(SilkTouchRegistrationContext context) + { + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext AddApiProfiles(AddApiProfiles.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(AddApiProfiles.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ClangScraper(ClangScraper.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(ClangScraper.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext AddIncludes(AddIncludes.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(AddIncludes.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext AddOpaqueStructs(AddOpaqueStructs.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(AddOpaqueStructs.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext AddVTables(AddVTables.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(AddVTables.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext BakeSourceSets(BakeSourceSets.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(BakeSourceSets.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ChangeNamespace(ChangeNamespace.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(ChangeNamespace.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ChangeNativeClass( + ChangeNativeClass.Configuration config + ) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(ChangeNativeClass.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ExtractEnumConstants() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ExtractFunctionPointers() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ExtractHandles() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext ExtractNestedTypes() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext IdentifySharedPrefixes( + IdentifySharedPrefixes.Configuration config + ) + { + context + .Builder.RegisterType() + .WithParameter( + new TypedParameter(typeof(IdentifySharedPrefixes.Configuration), config) + ) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext InterceptNativeFunctions( + InterceptNativeFunctions.Configuration config + ) + { + context + .Builder.RegisterType() + .WithParameter( + new TypedParameter(typeof(InterceptNativeFunctions.Configuration), config) + ) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext MarkNativeNames() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext MixKhronosData(MixKhronosData.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(MixKhronosData.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext PrettifyNames(PrettifyNames.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(PrettifyNames.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext StripAttributes(StripAttributes.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(StripAttributes.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext TransformEnums(TransformEnums.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(TransformEnums.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext TransformFunctions() + { + context + .Builder.RegisterType() + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext TransformHandles(TransformHandles.Configuration config) + { + context + .Builder.RegisterType() + .WithParameter(new TypedParameter(typeof(TransformHandles.Configuration), config)) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + + /// + /// Registers the mod. + /// + public SilkTouchRegistrationContext TransformProperties( + TransformProperties.Configuration config + ) + { + context + .Builder.RegisterType() + .WithParameter( + new TypedParameter(typeof(TransformProperties.Configuration), config) + ) + .AsHierarchyAndInterfaces() + .SingleInstance(); + + return context; + } + } + + extension( + IRegistrationBuilder registration + ) + where TConcreteActivatorData : IConcreteActivatorData + { + private IRegistrationBuilder< + TLimit, + TConcreteActivatorData, + SingleRegistrationStyle + > AsHierarchyAndInterfaces() + { + var type = registration.ActivatorData.Activator.LimitType; + var typesToRegister = new HashSet(); + typesToRegister.UnionWith(type.GetInterfaces()); + + var current = type; + while (current != null) + { + typesToRegister.Add(current); + current = current.BaseType; + } + + return registration.As(typesToRegister.ToArray()); + } + } + + /// + /// Helper for registering SilkTouch to a + /// + public record struct SilkTouchRegistrationContext(ContainerBuilder Builder); +} diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureBuildTypeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureBuildTypeKHR.gen.cs index e690cc4546..58784d00ff 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureBuildTypeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureBuildTypeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureCreateInfo2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureCreateInfo2KHR.gen.cs index e15ea9846c..34e650d452 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureCreateInfo2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureCreateInfo2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryAabbsDataKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryAabbsDataKHR.gen.cs index e1e78a57e2..d568ef8fd4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryAabbsDataKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryAabbsDataKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryLinearSweptSpheresDataNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryLinearSweptSpheresDataNV.gen.cs index 0daceacb74..094ca2d339 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryLinearSweptSpheresDataNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryLinearSweptSpheresDataNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryMicromapDataKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryMicromapDataKHR.gen.cs index 0cdc60b5ed..e07da4c735 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryMicromapDataKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryMicromapDataKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryTrianglesDataKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryTrianglesDataKHR.gen.cs index f4399cbfef..772dd66a99 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryTrianglesDataKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureGeometryTrianglesDataKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMatrixMotionInstanceNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMatrixMotionInstanceNV.gen.cs index 8b4b6a25e8..75d1f20e02 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMatrixMotionInstanceNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMatrixMotionInstanceNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMemoryRequirementsTypeNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMemoryRequirementsTypeNV.gen.cs index 511307d1f5..3c32ad57a9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMemoryRequirementsTypeNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMemoryRequirementsTypeNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceDataNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceDataNV.gen.cs index ab51dbbd47..d3c99266d5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceDataNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceDataNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceNV.gen.cs index f928fe43a4..2099697cac 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureMotionInstanceNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureTrianglesOpacityMicromapEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureTrianglesOpacityMicromapEXT.gen.cs index df609296fc..1cf62309a1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureTrianglesOpacityMicromapEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AccelerationStructureTrianglesOpacityMicromapEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AcquireProfilingLockFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AcquireProfilingLockFlagsKHR.gen.cs index c9d41b9553..ee43a891d4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AcquireProfilingLockFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AcquireProfilingLockFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AddressCopyFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AddressCopyFlagsKHR.gen.cs index 2afefe05ab..5de40f0703 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AddressCopyFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AddressCopyFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AmigoProfilingSubmitInfoSEC.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AmigoProfilingSubmitInfoSEC.gen.cs index cca620cc77..77ca6be398 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AmigoProfilingSubmitInfoSEC.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AmigoProfilingSubmitInfoSEC.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AntiLagStageAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AntiLagStageAMD.gen.cs index bf792519e6..ea919519a8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AntiLagStageAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AntiLagStageAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AttachmentDescription2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AttachmentDescription2.gen.cs index 2a62cbccc5..da0575bd4d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AttachmentDescription2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AttachmentDescription2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AttachmentLoadOp.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AttachmentLoadOp.gen.cs index fb6ec739e4..1634ae69b9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AttachmentLoadOp.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AttachmentLoadOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/AttachmentReference.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AttachmentReference.gen.cs index e68ba1acb6..7dd93805de 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AttachmentReference.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AttachmentReference.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/AttachmentReferenceStencilLayout.gen.cs b/sources/Vulkan/Vulkan/Vulkan/AttachmentReferenceStencilLayout.gen.cs index 964e826a23..6c8f7c27a2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/AttachmentReferenceStencilLayout.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/AttachmentReferenceStencilLayout.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BaseOutStructure.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BaseOutStructure.gen.cs index 976e819501..72ed9bb5a0 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BaseOutStructure.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BaseOutStructure.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindBufferMemoryDeviceGroupInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindBufferMemoryDeviceGroupInfo.gen.cs index e6be016c71..60a13084b5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindBufferMemoryDeviceGroupInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindBufferMemoryDeviceGroupInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindImageMemoryInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindImageMemoryInfo.gen.cs index 089e2e5725..10ddf96200 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindImageMemoryInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindImageMemoryInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindIndexBuffer3InfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindIndexBuffer3InfoKHR.gen.cs index ce273445ba..3d25af078f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindIndexBuffer3InfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindIndexBuffer3InfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindShaderGroupIndirectCommandNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindShaderGroupIndirectCommandNV.gen.cs index 99c8ee3f46..a914e349cd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindShaderGroupIndirectCommandNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindShaderGroupIndirectCommandNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindTransformFeedbackBuffer2InfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindTransformFeedbackBuffer2InfoEXT.gen.cs index 9545d4c780..97614150d8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindTransformFeedbackBuffer2InfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindTransformFeedbackBuffer2InfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BindVertexBufferIndirectCommandEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BindVertexBufferIndirectCommandEXT.gen.cs index b01be9d4ae..a83a5a6e1b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BindVertexBufferIndirectCommandEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BindVertexBufferIndirectCommandEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BlitImageInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BlitImageInfo2.gen.cs index 818517c34d..1d4cb303a4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BlitImageInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BlitImageInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BufferCopy2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BufferCopy2.gen.cs index d7e96a3a4f..452a94e728 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BufferCopy2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BufferCopy2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BufferCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BufferCreateFlags.gen.cs index 22ee285cdf..a7b9f5c85b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BufferCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BufferCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BufferImageCopy.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BufferImageCopy.gen.cs index 59e9b34935..aad8694bcd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BufferImageCopy.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BufferImageCopy.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BufferUsageFlags2CreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BufferUsageFlags2CreateInfo.gen.cs index 7a81677b80..7522800c08 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BufferUsageFlags2CreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BufferUsageFlags2CreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/BufferViewCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BufferViewCreateInfo.gen.cs index 6674638d8d..bf9307be21 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BufferViewCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BufferViewCreateInfo.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.Vulkan; [NativeName("VkBufferViewCreateInfo")] diff --git a/sources/Vulkan/Vulkan/Vulkan/BuildMicromapModeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/BuildMicromapModeEXT.gen.cs index 2f754f08f2..d44176b5ba 100644 --- a/sources/Vulkan/Vulkan/Vulkan/BuildMicromapModeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/BuildMicromapModeEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CheckpointData2NV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CheckpointData2NV.gen.cs index 1ef4e689f4..45eb5d196e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CheckpointData2NV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CheckpointData2NV.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/CheckpointDataNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CheckpointDataNV.gen.cs index f2e86a9ea6..d5bd71db4c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CheckpointDataNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CheckpointDataNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ChromaLocation.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ChromaLocation.gen.cs index acc211787f..92a3fcf018 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ChromaLocation.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ChromaLocation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClearAttachment.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClearAttachment.gen.cs index 6d15b126c4..f4ec473654 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClearAttachment.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClearAttachment.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClearDepthStencilValue.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClearDepthStencilValue.gen.cs index 7ddc98a623..5ddebb3e5f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClearDepthStencilValue.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClearDepthStencilValue.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClearRect.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClearRect.gen.cs index beed14c6fe..3972b985d7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClearRect.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClearRect.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.gen.cs index 9e653c579e..cde6488f36 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureBuildTriangleClusterTemplateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureCommandsInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureCommandsInfoNV.gen.cs index 7d32b45e9f..e684ba013d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureCommandsInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureCommandsInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV.gen.cs index ff289456dd..93e164f679 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureMoveObjectsInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureMoveObjectsInfoNV.gen.cs index 169e92f6ab..55b79c8aaf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureMoveObjectsInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureMoveObjectsInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureOpInputNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureOpInputNV.gen.cs index e129d0a228..21363d23e5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureOpInputNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ClusterAccelerationStructureOpInputNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CoarseSampleLocationNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CoarseSampleLocationNV.gen.cs index 3456084c7b..aa5b179b12 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CoarseSampleLocationNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CoarseSampleLocationNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CoarseSampleOrderCustomNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CoarseSampleOrderCustomNV.gen.cs index 5fc4bec1f4..66dce39b0c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CoarseSampleOrderCustomNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CoarseSampleOrderCustomNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ColorBlendAdvancedEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ColorBlendAdvancedEXT.gen.cs index cbac9429d1..20c39a4770 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ColorBlendAdvancedEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ColorBlendAdvancedEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ColorBlendEquationEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ColorBlendEquationEXT.gen.cs index 2d7ffa5481..e41cc46a8c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ColorBlendEquationEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ColorBlendEquationEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ColorComponentFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ColorComponentFlags.gen.cs index ef206eecb6..3c3af9fdff 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ColorComponentFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ColorComponentFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferAllocateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferAllocateInfo.gen.cs index 77892616b2..7c233f0072 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferAllocateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferAllocateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferInheritanceViewportScissorInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferInheritanceViewportScissorInfoNV.gen.cs index efa40c1d60..51c34d77e2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferInheritanceViewportScissorInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferInheritanceViewportScissorInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferLevel.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferLevel.gen.cs index c326b58283..993a9a8dc8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferLevel.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferLevel.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferResetFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferResetFlags.gen.cs index fb7e35ec05..8006c9359a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferResetFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferResetFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferSubmitInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferSubmitInfo.gen.cs index 5ad12815e1..ddfe309532 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferSubmitInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferSubmitInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandBufferUsageFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandBufferUsageFlags.gen.cs index 47528ed532..c24b8784b9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandBufferUsageFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandBufferUsageFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandPoolCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandPoolCreateFlags.gen.cs index 53c3f40692..1f84709f98 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandPoolCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandPoolCreateFlags.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/CommandPoolResetFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CommandPoolResetFlags.gen.cs index 6a4bb55f79..eecfaa7f1a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CommandPoolResetFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CommandPoolResetFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CompareOp.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CompareOp.gen.cs index acb7a28d92..947441b7f4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CompareOp.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CompareOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ComponentTypeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ComponentTypeKHR.gen.cs index afc1cdfc40..2c2f29db2f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ComponentTypeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ComponentTypeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CompositeAlphaFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CompositeAlphaFlagsKHR.gen.cs index 25aeb5e775..d3788001e9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CompositeAlphaFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CompositeAlphaFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ComputeOccupancyPriorityParametersNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ComputeOccupancyPriorityParametersNV.gen.cs index 692b2177ed..2b00c09ad5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ComputeOccupancyPriorityParametersNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ComputeOccupancyPriorityParametersNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ComputePipelineIndirectBufferInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ComputePipelineIndirectBufferInfoNV.gen.cs index 2b0e0b2734..6c9e3cde88 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ComputePipelineIndirectBufferInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ComputePipelineIndirectBufferInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ConditionalRenderingFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ConditionalRenderingFlagsEXT.gen.cs index 2879d3e6ae..c69a15d2f7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ConditionalRenderingFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ConditionalRenderingFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ConformanceVersion.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ConformanceVersion.gen.cs index f210f83e53..43b2f06c5f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ConformanceVersion.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ConformanceVersion.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyBufferInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyBufferInfo2.gen.cs index 5c243bd197..2a0b8f1aa9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyBufferInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyBufferInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryImageInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryImageInfoKHR.gen.cs index 7f60813d6f..511075c260 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryImageInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryImageInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryInfoKHR.gen.cs index 09f4ca4e1f..efbdae1c12 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyDeviceMemoryInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyImageInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyImageInfo2.gen.cs index dc2f4b751c..c9f7534414 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyImageInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyImageInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyImageToImageInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyImageToImageInfo.gen.cs index 5e6619d7b8..3b69e02e15 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyImageToImageInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyImageToImageInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryIndirectInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryIndirectInfoKHR.gen.cs index f2244a77c7..899488c7ce 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryIndirectInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryIndirectInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToAccelerationStructureInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToAccelerationStructureInfoKHR.gen.cs index e1828e74f4..b7a413ea64 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToAccelerationStructureInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToAccelerationStructureInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToMicromapInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToMicromapInfoEXT.gen.cs index 2abda00200..c539dcd88b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToMicromapInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyMemoryToMicromapInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyMicromapInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyMicromapInfoEXT.gen.cs index f0d7075c13..8308e640b4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyMicromapInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyMicromapInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CopyMicromapModeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CopyMicromapModeEXT.gen.cs index 137df58d22..b52c995115 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CopyMicromapModeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CopyMicromapModeEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/CuFunctionCreateInfoNVX.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CuFunctionCreateInfoNVX.gen.cs index 89cab42cb7..16d3da2c73 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CuFunctionCreateInfoNVX.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CuFunctionCreateInfoNVX.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CuModuleCreateInfoNVX.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CuModuleCreateInfoNVX.gen.cs index 6bb3900a42..9357124f2b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CuModuleCreateInfoNVX.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CuModuleCreateInfoNVX.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/CubicFilterWeightsQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/CubicFilterWeightsQCOM.gen.cs index 5dcb57f13e..99cda73705 100644 --- a/sources/Vulkan/Vulkan/Vulkan/CubicFilterWeightsQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/CubicFilterWeightsQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineBuiltinModelCreateInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineBuiltinModelCreateInfoQCOM.gen.cs index 71c9ca7db4..27cae959ef 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineBuiltinModelCreateInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineBuiltinModelCreateInfoQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineCompilerControlCreateInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineCompilerControlCreateInfoARM.gen.cs index 5712bc28a1..24724ee2de 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineCompilerControlCreateInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineCompilerControlCreateInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineConstantTensorSemiStructuredSparsityInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineConstantTensorSemiStructuredSparsityInfoARM.gen.cs index 382902ccdf..2122e0fd77 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineConstantTensorSemiStructuredSparsityInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineConstantTensorSemiStructuredSparsityInfoARM.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineDispatchInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineDispatchInfoARM.gen.cs index c8b7a3f3a3..ec5695126c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineDispatchInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineDispatchInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineIdentifierCreateInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineIdentifierCreateInfoARM.gen.cs index e31b7b343e..1eb0e20d23 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineIdentifierCreateInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineIdentifierCreateInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeConnectionTypeARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeConnectionTypeARM.gen.cs index b2c3891e9c..d7ca1b6b5e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeConnectionTypeARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeConnectionTypeARM.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeTypeARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeTypeARM.gen.cs index 867b14d981..cd3b4ab666 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeTypeARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineNodeTypeARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineOpticalFlowDispatchInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineOpticalFlowDispatchInfoARM.gen.cs index 4a25fbb8f6..62828b6ab0 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineOpticalFlowDispatchInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineOpticalFlowDispatchInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointARM.gen.cs index 2d06751b60..638080d3ae 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointRequirementsInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointRequirementsInfoARM.gen.cs index de683859df..c98fda2f49 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointRequirementsInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphPipelineSessionBindPointRequirementsInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphProcessingEngineCreateInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphProcessingEngineCreateInfoARM.gen.cs index 9b4849b075..4a6c340758 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphProcessingEngineCreateInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphProcessingEngineCreateInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DataGraphTosaQualityFlagsARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DataGraphTosaQualityFlagsARM.gen.cs index ff324aa9c1..aede445be3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DataGraphTosaQualityFlagsARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DataGraphTosaQualityFlagsARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DebugUtilsMessageTypeFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DebugUtilsMessageTypeFlagsEXT.gen.cs index 5cbfc5b1d9..f61e486d8d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DebugUtilsMessageTypeFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DebugUtilsMessageTypeFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DebugUtilsObjectNameInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DebugUtilsObjectNameInfoEXT.gen.cs index 10a7ebc112..db36092473 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DebugUtilsObjectNameInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DebugUtilsObjectNameInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DecompressMemoryRegionEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DecompressMemoryRegionEXT.gen.cs index 24ae2e29b4..3166a70c5c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DecompressMemoryRegionEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DecompressMemoryRegionEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DefaultVertexAttributeValueKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DefaultVertexAttributeValueKHR.gen.cs index eebad1f8c1..0c7d055126 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DefaultVertexAttributeValueKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DefaultVertexAttributeValueKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DepthClampRangeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DepthClampRangeEXT.gen.cs index 756a285306..9734f56317 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DepthClampRangeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DepthClampRangeEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorGetInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorGetInfoEXT.gen.cs index e0d32debb0..ac58a2dfde 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorGetInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorGetInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorImageInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorImageInfo.gen.cs index 21d2b34aa8..0494df9bee 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorImageInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorImageInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceEXT.gen.cs index a987baab1d..feac3d2820 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceHeapDataEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceHeapDataEXT.gen.cs index dc9054eb7e..7e338cbeaf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceHeapDataEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourceHeapDataEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourcePushIndexEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourcePushIndexEXT.gen.cs index 9118c15f92..6af061b978 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourcePushIndexEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorMappingSourcePushIndexEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorPoolInlineUniformBlockCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorPoolInlineUniformBlockCreateInfo.gen.cs index a82d86a1fc..902244eca9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorPoolInlineUniformBlockCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorPoolInlineUniformBlockCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetAllocateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetAllocateInfo.gen.cs index e2ea4b3b50..cbcea41a47 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetAllocateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetAllocateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetBindingReferenceVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetBindingReferenceVALVE.gen.cs index 1f6cfbccc1..3713c861f2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetBindingReferenceVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetBindingReferenceVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutBinding.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutBinding.gen.cs index a0d461d792..a7e9387762 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutBinding.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutBinding.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutHostMappingInfoVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutHostMappingInfoVALVE.gen.cs index 5ad89bdbf2..40362bc727 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutHostMappingInfoVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetLayoutHostMappingInfoVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetVariableDescriptorCountAllocateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetVariableDescriptorCountAllocateInfo.gen.cs index 8bb728dace..df5256daf3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorSetVariableDescriptorCountAllocateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorSetVariableDescriptorCountAllocateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorType.gen.cs index fa1bd80385..fc3583f92d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DescriptorUpdateTemplateCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DescriptorUpdateTemplateCreateInfo.gen.cs index ac1d7d8d90..fe88741c03 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DescriptorUpdateTemplateCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DescriptorUpdateTemplateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceDiagnosticsConfigFlagsNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceDiagnosticsConfigFlagsNV.gen.cs index add7cd2853..6bffa37c03 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceDiagnosticsConfigFlagsNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceDiagnosticsConfigFlagsNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceEventTypeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceEventTypeEXT.gen.cs index b1a2c6a14b..44f9d7596f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceEventTypeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceEventTypeEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressInfoKHR.gen.cs index fedf99d06a..ee404d31bb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressTypeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressTypeKHR.gen.cs index e645e4c583..11c27f76cd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressTypeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultAddressTypeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultCountsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultCountsEXT.gen.cs index 1e6aeb4a11..72b525a571 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultCountsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultCountsEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultInfoEXT.gen.cs index f8e9a44a8c..30f07fc88e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultShaderAbortMessageInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultShaderAbortMessageInfoKHR.gen.cs index 866e47491b..6fc305e2cb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultShaderAbortMessageInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultShaderAbortMessageInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultVendorBinaryHeaderVersionOneKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultVendorBinaryHeaderVersionOneKHR.gen.cs index da417c27f0..92072fedce 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceFaultVendorBinaryHeaderVersionOneKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceFaultVendorBinaryHeaderVersionOneKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceGroupCommandBufferBeginInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceGroupCommandBufferBeginInfo.gen.cs index 561180688b..85d33efeda 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceGroupCommandBufferBeginInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceGroupCommandBufferBeginInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceGroupRenderPassBeginInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceGroupRenderPassBeginInfo.gen.cs index 1b2e04bd06..ef36891ed5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceGroupRenderPassBeginInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceGroupRenderPassBeginInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceImageMemoryRequirements.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceImageMemoryRequirements.gen.cs index 24a6f5d901..53d2022143 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceImageMemoryRequirements.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceImageMemoryRequirements.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceMemoryImageCopyKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceMemoryImageCopyKHR.gen.cs index f3c2c39ae3..cc06381c73 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceMemoryImageCopyKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceMemoryImageCopyKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressConstKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressConstKHR.gen.cs index 7da81eac98..128793fa7c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressConstKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressConstKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressKHR.gen.cs index 8d3f3e257d..5ed8829080 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceOrHostAddressKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DevicePrivateDataCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DevicePrivateDataCreateInfo.gen.cs index 5665ce3040..004555a2b9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DevicePrivateDataCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DevicePrivateDataCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DeviceQueueInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DeviceQueueInfo2.gen.cs index d72ffaab38..31bd9393dc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DeviceQueueInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DeviceQueueInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DispatchIndirectCommand.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DispatchIndirectCommand.gen.cs index 5ed2323535..5d9f34f668 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DispatchIndirectCommand.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DispatchIndirectCommand.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DisplayEventTypeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DisplayEventTypeEXT.gen.cs index 5193535f7a..e1925cd951 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DisplayEventTypeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DisplayEventTypeEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/DisplayModeCreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DisplayModeCreateInfoKHR.gen.cs index 5d6b894bc7..455150203a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DisplayModeCreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DisplayModeCreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DisplayModeParametersKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DisplayModeParametersKHR.gen.cs index b3029304cc..b906769be2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DisplayModeParametersKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DisplayModeParametersKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DisplayModeProperties2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DisplayModeProperties2KHR.gen.cs index 3cf3d65eba..4c053fca73 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DisplayModeProperties2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DisplayModeProperties2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DisplaySurfaceStereoCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DisplaySurfaceStereoCreateInfoNV.gen.cs index 1ec05707e8..ff32a82610 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DisplaySurfaceStereoCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DisplaySurfaceStereoCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DrawIndirectCommand.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DrawIndirectCommand.gen.cs index 2b955d4320..54fa4777b4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DrawIndirectCommand.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DrawIndirectCommand.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DrmFormatModifierPropertiesList2EXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DrmFormatModifierPropertiesList2EXT.gen.cs index befd6c5b5e..5e82ceef19 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DrmFormatModifierPropertiesList2EXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DrmFormatModifierPropertiesList2EXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/DynamicState.gen.cs b/sources/Vulkan/Vulkan/Vulkan/DynamicState.gen.cs index 4300fef074..7aa1d68fbf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/DynamicState.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/DynamicState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/EventCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/EventCreateInfo.gen.cs index ee1b1422ec..88ac0c4c4a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/EventCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/EventCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExportFenceCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExportFenceCreateInfo.gen.cs index 7605265902..d6e4661cbe 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExportFenceCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExportFenceCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExportMemoryAllocateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExportMemoryAllocateInfo.gen.cs index 3f0bea4c2a..ad104c5da8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExportMemoryAllocateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExportMemoryAllocateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExtensionProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExtensionProperties.gen.cs index 53f3abfcd2..e00a0ed450 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExtensionProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExtensionProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueCreateInfoNV.gen.cs index aa663663e9..3d2f406adc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueDataParamsNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueDataParamsNV.gen.cs index 276bcc2592..f8f6c053e4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueDataParamsNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalComputeQueueDataParamsNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalFenceFeatureFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalFenceFeatureFlags.gen.cs index 3b01d555f1..34ad0c0843 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalFenceFeatureFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalFenceFeatureFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalFenceProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalFenceProperties.gen.cs index 062b273efd..e5a88dd5fe 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalFenceProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalFenceProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalImageFormatProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalImageFormatProperties.gen.cs index 08b9bc48b2..bcd08d2f8c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalImageFormatProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalImageFormatProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryAcquireUnmodifiedEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryAcquireUnmodifiedEXT.gen.cs index 72cfcbcbfa..5ef2d20141 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryAcquireUnmodifiedEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryAcquireUnmodifiedEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryImageCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryImageCreateInfo.gen.cs index b807447aa9..8768d4dd7a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryImageCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryImageCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryProperties.gen.cs index 9ee139a03c..3fcaf8b1f4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ExternalMemoryProperties.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/FenceCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FenceCreateFlags.gen.cs index be0baec574..24cfbf475b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FenceCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FenceCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FenceCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FenceCreateInfo.gen.cs index 2c38c4ab07..102e2388f3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FenceCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FenceCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FenceGetFdInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FenceGetFdInfoKHR.gen.cs index c3ea18663f..fc3e0cc754 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FenceGetFdInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FenceGetFdInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/Filter.gen.cs b/sources/Vulkan/Vulkan/Vulkan/Filter.gen.cs index df813b9291..dcf4662470 100644 --- a/sources/Vulkan/Vulkan/Vulkan/Filter.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/Filter.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/FormatProperties2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FormatProperties2.gen.cs index 59989ce277..e81efe0264 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FormatProperties2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FormatProperties2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateAttachmentInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateAttachmentInfoKHR.gen.cs index 0fb355d195..4e2ba046ac 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateAttachmentInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateAttachmentInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateNV.gen.cs index 097bd50c92..56d78c2e0c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateTypeNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateTypeNV.gen.cs index be0c4adeeb..3f29b34fbf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateTypeNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FragmentShadingRateTypeNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FrameBoundaryFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FrameBoundaryFlagsEXT.gen.cs index d52bf08458..7f9478db00 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FrameBoundaryFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FrameBoundaryFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FramebufferAttachmentsCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FramebufferAttachmentsCreateInfo.gen.cs index 2aee506d14..0271d1d648 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FramebufferAttachmentsCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FramebufferAttachmentsCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/FramebufferMixedSamplesCombinationNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/FramebufferMixedSamplesCombinationNV.gen.cs index 5242bd93dd..d1dfb4724f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/FramebufferMixedSamplesCombinationNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/FramebufferMixedSamplesCombinationNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GeneratedCommandsInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GeneratedCommandsInfoEXT.gen.cs index 6edd15608b..a9999121d5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GeneratedCommandsInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GeneratedCommandsInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GeometryDataNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GeometryDataNV.gen.cs index 1663d99670..6902649050 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GeometryDataNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GeometryDataNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GeometryTrianglesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GeometryTrianglesNV.gen.cs index 037917264b..90bed8460f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GeometryTrianglesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GeometryTrianglesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GpaDeviceClockModeInfoAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GpaDeviceClockModeInfoAMD.gen.cs index 26d7df2bfa..e94837418d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GpaDeviceClockModeInfoAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GpaDeviceClockModeInfoAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GpaDeviceGetClockInfoAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GpaDeviceGetClockInfoAMD.gen.cs index 704bde7cf3..746ba7d6b9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GpaDeviceGetClockInfoAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GpaDeviceGetClockInfoAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GpaPerfBlockPropertiesAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GpaPerfBlockPropertiesAMD.gen.cs index 36a4b92937..c1f1091aef 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GpaPerfBlockPropertiesAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GpaPerfBlockPropertiesAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/GpaPerfCounterAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GpaPerfCounterAMD.gen.cs index a6fcbcf4e1..342b6b832c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GpaPerfCounterAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GpaPerfCounterAMD.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/GpaSampleTypeAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/GpaSampleTypeAMD.gen.cs index 3b7f5660f0..a5a82b1af4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/GpaSampleTypeAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/GpaSampleTypeAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/HeadlessSurfaceCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/HeadlessSurfaceCreateInfoEXT.gen.cs index 033eea40f5..99154ed7ab 100644 --- a/sources/Vulkan/Vulkan/Vulkan/HeadlessSurfaceCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/HeadlessSurfaceCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/HostAddressRangeConstEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/HostAddressRangeConstEXT.gen.cs index 8b2b239bbc..eb538567e1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/HostAddressRangeConstEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/HostAddressRangeConstEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/HostImageLayoutTransitionInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/HostImageLayoutTransitionInfo.gen.cs index 068e90b3f5..212e593ff8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/HostImageLayoutTransitionInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/HostImageLayoutTransitionInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IVk.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IVk.gen.cs index 754ba8bc15..52ce6f32aa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IVk.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IVk.gen.cs @@ -3,8 +3,10 @@ // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageBlit.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageBlit.gen.cs index 560e6f162d..511be02540 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageBlit.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageBlit.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCaptureDescriptorDataInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCaptureDescriptorDataInfoEXT.gen.cs index 55f9ad8475..30e3e7f31d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCaptureDescriptorDataInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCaptureDescriptorDataInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCompressionFixedRateFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCompressionFixedRateFlagsEXT.gen.cs index 4448390da2..fe9dd2b25a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCompressionFixedRateFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCompressionFixedRateFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCompressionPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCompressionPropertiesEXT.gen.cs index da746c98bf..25efb3cdbe 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCompressionPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCompressionPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCopy.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCopy.gen.cs index e786543b86..b887dc8525 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCopy.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCopy.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags.gen.cs index 8989633180..aa928e73c0 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags2CreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags2CreateInfoKHR.gen.cs index 347579d1f8..75f944008b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags2CreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageCreateFlags2CreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierExplicitCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierExplicitCreateInfoEXT.gen.cs index d213e68f58..32ab57c89d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierExplicitCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierExplicitCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierPropertiesEXT.gen.cs index 733ccda01e..a6ca234e80 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageDrmFormatModifierPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageFormatListCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageFormatListCreateInfo.gen.cs index db4523f735..5b61cb0a55 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageFormatListCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageFormatListCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageLayout.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageLayout.gen.cs index 16cd22de41..bedf56f471 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageLayout.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageLayout.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageResolve.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageResolve.gen.cs index 9e2039c0a0..acd570221f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageResolve.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageResolve.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsage2CreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsage2CreateInfoKHR.gen.cs index 29aa0211c0..02f3d858b1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsage2CreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsage2CreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsageCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsageCreateInfo.gen.cs index 2180542ee9..dfa7e7c3e3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsageCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageStencilUsageCreateInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageSubresource.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageSubresource.gen.cs index 7ee1ae62e4..170881269e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageSubresource.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageSubresource.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageSubresource2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageSubresource2.gen.cs index 7beda83c2e..fc924e5b70 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageSubresource2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageSubresource2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageViewAddressPropertiesNVX.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageViewAddressPropertiesNVX.gen.cs index 0436a0a1ae..8050668de0 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageViewAddressPropertiesNVX.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageViewAddressPropertiesNVX.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageViewSampleWeightCreateInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageViewSampleWeightCreateInfoQCOM.gen.cs index 4233393279..53bf111367 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageViewSampleWeightCreateInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageViewSampleWeightCreateInfoQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageViewSlicedCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageViewSlicedCreateInfoEXT.gen.cs index 5e29cf3554..c1541028d8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageViewSlicedCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageViewSlicedCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageViewUsage2CreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageViewUsage2CreateInfoKHR.gen.cs index 062d8e5f59..41f34d0719 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageViewUsage2CreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageViewUsage2CreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImageViewUsageCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImageViewUsageCreateInfo.gen.cs index 3d043bbf5d..303a53a237 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImageViewUsageCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImageViewUsageCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImportFenceFdInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImportFenceFdInfoKHR.gen.cs index f3a5f3c50e..ddf767dd2f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImportFenceFdInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImportFenceFdInfoKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImportMemoryFdInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImportMemoryFdInfoKHR.gen.cs index 141ec76cc8..97ea832de4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImportMemoryFdInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImportMemoryFdInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ImportSemaphoreFdInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ImportSemaphoreFdInfoKHR.gen.cs index f967693079..cff9456c52 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ImportSemaphoreFdInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ImportSemaphoreFdInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutCreateInfoEXT.gen.cs index bd857b7f21..d417a4fe5f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutTokenEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutTokenEXT.gen.cs index 1a19f8c2bf..0c102727f1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutTokenEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutTokenEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutUsageFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutUsageFlagsEXT.gen.cs index df346cd061..93790c531e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutUsageFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsLayoutUsageFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsStreamNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsStreamNV.gen.cs index 5a0da9d5e0..ee4fbb7a99 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsStreamNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectCommandsStreamNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetCreateInfoEXT.gen.cs index 6599a03275..5bc32bd4de 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetInfoEXT.gen.cs index 585d697614..c2b0bdc189 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetShaderLayoutInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetShaderLayoutInfoEXT.gen.cs index c74e85257d..29f99cdd21 100644 --- a/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetShaderLayoutInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/IndirectExecutionSetShaderLayoutInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/InitializePerformanceApiInfoINTEL.gen.cs b/sources/Vulkan/Vulkan/Vulkan/InitializePerformanceApiInfoINTEL.gen.cs index 06d2f774c3..1d22155622 100644 --- a/sources/Vulkan/Vulkan/Vulkan/InitializePerformanceApiInfoINTEL.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/InitializePerformanceApiInfoINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/InstanceCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/InstanceCreateFlags.gen.cs index 3b19eb8f82..bb8c2d6ec6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/InstanceCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/InstanceCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LatencySleepModeInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LatencySleepModeInfoNV.gen.cs index f843d820ee..470e442292 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LatencySleepModeInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LatencySleepModeInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LatencySubmissionPresentIdNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LatencySubmissionPresentIdNV.gen.cs index 8f8990979c..1c32948ca4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LatencySubmissionPresentIdNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LatencySubmissionPresentIdNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LayerProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LayerProperties.gen.cs index 29716df5af..85d0d9e3c2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LayerProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LayerProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LayerSettingEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LayerSettingEXT.gen.cs index 08d638b08b..0d8591461f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LayerSettingEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LayerSettingEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LayerSettingTypeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LayerSettingTypeEXT.gen.cs index b6cde873b2..fd3f9bfb6b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LayerSettingTypeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LayerSettingTypeEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/LayeredDriverUnderlyingApiMSFT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LayeredDriverUnderlyingApiMSFT.gen.cs index 6403e2082f..730e6e6f22 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LayeredDriverUnderlyingApiMSFT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LayeredDriverUnderlyingApiMSFT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/LogicOp.gen.cs b/sources/Vulkan/Vulkan/Vulkan/LogicOp.gen.cs index c299774ace..ae3920920a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/LogicOp.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/LogicOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryBarrier2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryBarrier2.gen.cs index 67c60800e3..9f4f5eb9be 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryBarrier2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryBarrier2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryBarrierAccessFlags3KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryBarrierAccessFlags3KHR.gen.cs index 00167c3045..7007964c25 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryBarrierAccessFlags3KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryBarrierAccessFlags3KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedAllocateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedAllocateInfo.gen.cs index 2ead92e5e9..01b521adbe 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedAllocateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedAllocateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedRequirements.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedRequirements.gen.cs index b63706b5e9..b8e0bd9afa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedRequirements.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryDedicatedRequirements.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryGetFdInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryGetFdInfoKHR.gen.cs index eed30b9f3e..e8c853e264 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryGetFdInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryGetFdInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryGetRemoteAddressInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryGetRemoteAddressInfoNV.gen.cs index 8925dd54b9..ef71c4f573 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryGetRemoteAddressInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryGetRemoteAddressInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryHeapFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryHeapFlags.gen.cs index 445d8f4075..2b2c5d5974 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryHeapFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryHeapFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryRangeBarrierKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryRangeBarrierKHR.gen.cs index 3c099012db..c9f1572210 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryRangeBarrierKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryRangeBarrierKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapFlags.gen.cs index 41ea581867..9367796074 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapInfo.gen.cs index b6922e8b7b..7232082c20 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MemoryUnmapInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapBuildInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapBuildInfoEXT.gen.cs index 3f27cf7824..91c6f009d1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapBuildInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapBuildInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapBuildSizesInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapBuildSizesInfoEXT.gen.cs index f1d46ce96e..b1d74b8262 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapBuildSizesInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapBuildSizesInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapCreateFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapCreateFlagsEXT.gen.cs index 316d39a894..c3b6abaf2e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapCreateFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapCreateFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapCreateInfoEXT.gen.cs index c1a532fa00..71320baebb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapUsageEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapUsageEXT.gen.cs index 256e369f8a..47c3ceba77 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapUsageEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapUsageEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapUsageKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapUsageKHR.gen.cs index adc6bb46f3..5e92280bef 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapUsageKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapUsageKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MicromapVersionInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MicromapVersionInfoEXT.gen.cs index ffafb199b4..01f326a349 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MicromapVersionInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MicromapVersionInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MultisamplePropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MultisamplePropertiesEXT.gen.cs index ffd8e6ba9d..4531613f46 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MultisamplePropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MultisamplePropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MultisampledRenderToSingleSampledInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MultisampledRenderToSingleSampledInfoEXT.gen.cs index 67e2e9326a..acf1c35eac 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MultisampledRenderToSingleSampledInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MultisampledRenderToSingleSampledInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewAttributesInfoNVX.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewAttributesInfoNVX.gen.cs index 16da2c1ecb..9159d4a47d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewAttributesInfoNVX.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewAttributesInfoNVX.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.gen.cs index cb1a634793..f8c328b298 100644 --- a/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/NeuralAcceleratorStatisticsModeARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/NeuralAcceleratorStatisticsModeARM.gen.cs index e1ee6c436a..dbd3604f04 100644 --- a/sources/Vulkan/Vulkan/Vulkan/NeuralAcceleratorStatisticsModeARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/NeuralAcceleratorStatisticsModeARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpacityMicromapFormatKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpacityMicromapFormatKHR.gen.cs index 26a76dde6c..811a7888cb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpacityMicromapFormatKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpacityMicromapFormatKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpaqueCaptureDescriptorDataCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpaqueCaptureDescriptorDataCreateInfoEXT.gen.cs index 638ed62775..cdd9abd3da 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpaqueCaptureDescriptorDataCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpaqueCaptureDescriptorDataCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowExecuteInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowExecuteInfoNV.gen.cs index eec496a401..ec05a4e0ed 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowExecuteInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowExecuteInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowImageFormatPropertiesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowImageFormatPropertiesNV.gen.cs index 60649ddd30..5d7aa8ff9b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowImageFormatPropertiesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowImageFormatPropertiesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionBindingPointNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionBindingPointNV.gen.cs index 4ec806df70..c215c9a380 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionBindingPointNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionBindingPointNV.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionCreatePrivateDataInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionCreatePrivateDataInfoNV.gen.cs index a065626284..41c64da865 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionCreatePrivateDataInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowSessionCreatePrivateDataInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowUsageFlagsNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowUsageFlagsNV.gen.cs index 1f1fadb784..c803748826 100644 --- a/sources/Vulkan/Vulkan/Vulkan/OpticalFlowUsageFlagsNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/OpticalFlowUsageFlagsNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PartitionedAccelerationStructureWriteInstanceDataNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PartitionedAccelerationStructureWriteInstanceDataNV.gen.cs index c02d0a8124..b5c56462ef 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PartitionedAccelerationStructureWriteInstanceDataNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PartitionedAccelerationStructureWriteInstanceDataNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingFlagsEXT.gen.cs index d1e7d484c3..a5b9c24423 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingInfoEXT.gen.cs index 5f487530d8..7220519929 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PastPresentationTimingInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PeerMemoryFeatureFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PeerMemoryFeatureFlags.gen.cs index 4e2aa94f7a..dc0d5ed892 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PeerMemoryFeatureFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PeerMemoryFeatureFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerTileBeginInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerTileBeginInfoQCOM.gen.cs index 24137176c4..c55cb48f19 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerTileBeginInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerTileBeginInfoQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerfHintTypeQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerfHintTypeQCOM.gen.cs index 4aceed8029..b0a87eb43f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerfHintTypeQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerfHintTypeQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterDescriptionKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterDescriptionKHR.gen.cs index 73d706ba72..a64d8be31b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterDescriptionKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterDescriptionKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterKHR.gen.cs index 75e2c4126d..efa9f2e2f6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterScopeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterScopeKHR.gen.cs index 1b5982fb02..c0b28a041b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterScopeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerformanceCounterScopeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerformanceOverrideInfoINTEL.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerformanceOverrideInfoINTEL.gen.cs index 4848cb587c..73e303012b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerformanceOverrideInfoINTEL.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerformanceOverrideInfoINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PerformanceParameterTypeINTEL.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PerformanceParameterTypeINTEL.gen.cs index 5248016c6a..78e97979b3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PerformanceParameterTypeINTEL.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PerformanceParameterTypeINTEL.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructureFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructureFeaturesKHR.gen.cs index ac17421e3d..8544f021bb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructureFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructureFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructurePropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructurePropertiesKHR.gen.cs index 564f0c6dff..525587012e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructurePropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAccelerationStructurePropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAddressBindingReportFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAddressBindingReportFeaturesEXT.gen.cs index 88184c6ce5..da60b4c405 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAddressBindingReportFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAddressBindingReportFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAntiLagFeaturesAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAntiLagFeaturesAMD.gen.cs index 6451460cbe..cc1d9eabdc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAntiLagFeaturesAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAntiLagFeaturesAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.gen.cs index abab3f3aef..2299f221d9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceAttachmentFeedbackLoopLayoutFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceBlendOperationAdvancedPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceBlendOperationAdvancedPropertiesEXT.gen.cs index d3bccb9342..49c8113611 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceBlendOperationAdvancedPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceBlendOperationAdvancedPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.gen.cs index 91230742c0..ba18dcdaa6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceClusterCullingShaderVrsFeaturesHUAWEI.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceComputeShaderDerivativesPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceComputeShaderDerivativesPropertiesKHR.gen.cs index 29a75a92a2..e44601a59e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceComputeShaderDerivativesPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceComputeShaderDerivativesPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceConservativeRasterizationPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceConservativeRasterizationPropertiesEXT.gen.cs index 94863b788e..5588eeafd2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceConservativeRasterizationPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceConservativeRasterizationPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.gen.cs index 5fc13b4470..144ed913f3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixDecodeVectorFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixFeaturesNV.gen.cs index f3a1296a40..125ad24855 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCooperativeMatrixFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCustomBorderColorFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCustomBorderColorFeaturesEXT.gen.cs index 603622e554..dcc8d823cc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCustomBorderColorFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceCustomBorderColorFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM.gen.cs index d1690f7cf2..603e10dbde 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphNeuralAcceleratorStatisticsFeaturesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphProcessingEngineARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphProcessingEngineARM.gen.cs index 9e5b98c86b..137eef2de3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphProcessingEngineARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDataGraphProcessingEngineARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorFeaturesARM.gen.cs index 9b49b9fe33..8d4327e9c4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorFeaturesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorPropertiesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorPropertiesARM.gen.cs index c04f54cccc..cb0cc77090 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorPropertiesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorBufferTensorPropertiesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorHeapPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorHeapPropertiesEXT.gen.cs index fe0f189c1e..73e1fb40e5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorHeapPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorHeapPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorIndexingFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorIndexingFeatures.gen.cs index 85d69166ef..8c9207d333 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorIndexingFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDescriptorIndexingFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsFeaturesNV.gen.cs index e94d0b9609..9728a03ec4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.gen.cs index 88c8f21462..d9cddce3d3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceGeneratedCommandsPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceMemoryReportFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceMemoryReportFeaturesEXT.gen.cs index 8ec93d06c6..00af51eb72 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceMemoryReportFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDeviceMemoryReportFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDriverProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDriverProperties.gen.cs index f9106d1296..4f78d9b581 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDriverProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDriverProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDynamicRenderingFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDynamicRenderingFeatures.gen.cs index efd413cb55..560b530c2f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDynamicRenderingFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceDynamicRenderingFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceElapsedTimerQueryFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceElapsedTimerQueryFeaturesQCOM.gen.cs index faddf95a3f..47bba0590b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceElapsedTimerQueryFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceElapsedTimerQueryFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExtendedDynamicState3PropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExtendedDynamicState3PropertiesEXT.gen.cs index ca0f287252..e48532dc8b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExtendedDynamicState3PropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExtendedDynamicState3PropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalComputeQueuePropertiesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalComputeQueuePropertiesNV.gen.cs index ddb9b9047b..b01068ae56 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalComputeQueuePropertiesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalComputeQueuePropertiesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalFenceInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalFenceInfo.gen.cs index 646acf6bf1..f2c9457915 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalFenceInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalFenceInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalMemoryHostPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalMemoryHostPropertiesEXT.gen.cs index 9b360012d3..0e761589bc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalMemoryHostPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceExternalMemoryHostPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultFeaturesKHR.gen.cs index 36b0c8631e..56cfa4309a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultPropertiesKHR.gen.cs index c4fb9b267d..55b7ce6aed 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFaultPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMap2FeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMap2FeaturesEXT.gen.cs index 689fad33c7..74fba0de75 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMap2FeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMap2FeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapLayeredPropertiesVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapLayeredPropertiesVALVE.gen.cs index 2fb8918457..672944423e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapLayeredPropertiesVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapLayeredPropertiesVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapOffsetPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapOffsetPropertiesEXT.gen.cs index e208656e73..b61516ddec 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapOffsetPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapOffsetPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapPropertiesEXT.gen.cs index 8e3fad0430..3f5960d4e9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentDensityMapPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRateEnumsPropertiesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRateEnumsPropertiesNV.gen.cs index a739de9f77..ab747fc7e2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRateEnumsPropertiesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRateEnumsPropertiesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRatePropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRatePropertiesKHR.gen.cs index bdb1aae09d..8a11255805 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRatePropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceFragmentShadingRatePropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGlobalPriorityQueryFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGlobalPriorityQueryFeatures.gen.cs index 8a8c11a6f7..d4deffd6ab 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGlobalPriorityQueryFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGlobalPriorityQueryFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGpaProperties2AMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGpaProperties2AMD.gen.cs index f6b144d6b9..2a69712e08 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGpaProperties2AMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGpaProperties2AMD.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.gen.cs index f40d683031..810e76a368 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGroupProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGroupProperties.gen.cs index 1b6dd436a6..d3f435c652 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGroupProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceGroupProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceHostQueryResetFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceHostQueryResetFeatures.gen.cs index 4b7370951b..885319b0de 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceHostQueryResetFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceHostQueryResetFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceIDProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceIDProperties.gen.cs index 4401b0b4e7..4ba18e33b7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceIDProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceIDProperties.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageCompressionControlFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageCompressionControlFeaturesEXT.gen.cs index f2bd0b4262..65b4bd0dbb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageCompressionControlFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageCompressionControlFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageDrmFormatModifierInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageDrmFormatModifierInfoEXT.gen.cs index 64d23f1f5a..b3fbfb5077 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageDrmFormatModifierInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageDrmFormatModifierInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageFormatInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageFormatInfo2.gen.cs index eef23bc718..003d82e59b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageFormatInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageFormatInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessing2PropertiesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessing2PropertiesQCOM.gen.cs index 0787b2e6f5..16d956e2fa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessing2PropertiesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessing2PropertiesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessingFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessingFeaturesQCOM.gen.cs index 31279f2b19..c21d4b21a1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessingFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageProcessingFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageViewMinLodFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageViewMinLodFeaturesEXT.gen.cs index 3374baffe9..32fca0410e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageViewMinLodFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceImageViewMinLodFeaturesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceInvocationMaskFeaturesHUAWEI.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceInvocationMaskFeaturesHUAWEI.gen.cs index eda9f46fbf..f03e7452f5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceInvocationMaskFeaturesHUAWEI.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceInvocationMaskFeaturesHUAWEI.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredApiVulkanPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredApiVulkanPropertiesKHR.gen.cs index 1a564442d0..46c302901f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredApiVulkanPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredApiVulkanPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredDriverPropertiesMSFT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredDriverPropertiesMSFT.gen.cs index 133cd0eb46..b5b678ec54 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredDriverPropertiesMSFT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLayeredDriverPropertiesMSFT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyDitheringFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyDitheringFeaturesEXT.gen.cs index 9e7973a064..297c9fdf50 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyDitheringFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyDitheringFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesFeaturesEXT.gen.cs index 4aa2517606..cd4f345707 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesPropertiesEXT.gen.cs index d024153844..a2716ca654 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLegacyVertexAttributesPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLineRasterizationProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLineRasterizationProperties.gen.cs index 7f1ceb0594..356f0c9817 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLineRasterizationProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceLineRasterizationProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10FeaturesKHR.gen.cs index 297f8c9014..ee6687cf58 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10FeaturesKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10PropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10PropertiesKHR.gen.cs index 65efa4d23f..d6a8e93ab8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10PropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance10PropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance11FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance11FeaturesKHR.gen.cs index 76ca99c9e8..9555d9859d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance11FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance11FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Features.gen.cs index 7bda213ffe..6ea7b1ca18 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Properties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Properties.gen.cs index 259d6edc3e..ed161af8c2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Properties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance4Properties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance7FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance7FeaturesKHR.gen.cs index 0ecffacbbf..e3eba0caa3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance7FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance7FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance8FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance8FeaturesKHR.gen.cs index 5a53fb8827..43d89783d2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance8FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance8FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance9PropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance9PropertiesKHR.gen.cs index 7c0bba4497..3a3ca85222 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance9PropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMaintenance9PropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMapMemoryPlacedFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMapMemoryPlacedFeaturesEXT.gen.cs index 62be2b6eb1..3c0784b47a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMapMemoryPlacedFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMapMemoryPlacedFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryDecompressionFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryDecompressionFeaturesEXT.gen.cs index 0dfa2456ed..3b8af2ad4d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryDecompressionFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryDecompressionFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryPriorityFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryPriorityFeaturesEXT.gen.cs index 4c1ef6a4cc..e02b694612 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryPriorityFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryPriorityFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryProperties.gen.cs index 3c78b58ad3..eb625b05af 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMemoryProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesEXT.gen.cs index 4c7c09dc52..9a133ecb14 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesNV.gen.cs index a90bd64c69..dc8a413a2b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMeshShaderFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.gen.cs index a9118df836..278dc2b26e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceMultiviewPerViewRenderAreasFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceNestedCommandBufferPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceNestedCommandBufferPropertiesEXT.gen.cs index a5f1f711a3..0f47586bce 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceNestedCommandBufferPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceNestedCommandBufferPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePciBusInfoPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePciBusInfoPropertiesEXT.gen.cs index ed5cade462..f332899556 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePciBusInfoPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePciBusInfoPropertiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionFeaturesARM.gen.cs index f89986b14d..fbf4a709aa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionFeaturesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionPropertiesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionPropertiesARM.gen.cs index 1743576a5a..2d23b2d22e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionPropertiesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceCountersByRegionPropertiesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceQueryPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceQueryPropertiesKHR.gen.cs index 98ad5c2df4..576312782f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceQueryPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePerformanceQueryPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineBinaryPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineBinaryPropertiesKHR.gen.cs index 971696be8c..dbf68170d1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineBinaryPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineBinaryPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineCreationCacheControlFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineCreationCacheControlFeatures.gen.cs index a828e16a39..6dd3831708 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineCreationCacheControlFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineCreationCacheControlFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.gen.cs index 55651c1b97..53f98097a5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineLibraryGroupHandlesFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineProtectedAccessFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineProtectedAccessFeatures.gen.cs index 3c84c7e45f..2ec49c66df 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineProtectedAccessFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineProtectedAccessFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessFeatures.gen.cs index eca1c22528..756a3afef4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessProperties.gen.cs index 6cdbbc1047..f316d367f0 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePipelineRobustnessProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentId2FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentId2FeaturesKHR.gen.cs index 0e4b222cb0..a784efe895 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentId2FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentId2FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentWait2FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentWait2FeaturesKHR.gen.cs index 1d9d9443e3..2fa8994299 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentWait2FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePresentWait2FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties.gen.cs index b3ab9cfc4c..b390f6c8f6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties2.gen.cs index 5ce894ac91..a6c60bb457 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceProperties2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePushDescriptorProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePushDescriptorProperties.gen.cs index b787cd0cd3..7feec243c8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePushDescriptorProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDevicePushDescriptorProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingInvocationReorderFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingInvocationReorderFeaturesEXT.gen.cs index 69b3fb83d0..14103d0f5e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingInvocationReorderFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingInvocationReorderFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingMaintenance1FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingMaintenance1FeaturesKHR.gen.cs index 0abc437d88..4f521ab687 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingMaintenance1FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingMaintenance1FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPipelinePropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPipelinePropertiesKHR.gen.cs index bb32ec8c6c..76188b6293 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPipelinePropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPipelinePropertiesKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPositionFetchFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPositionFetchFeaturesKHR.gen.cs index 90a0b26478..0cf6e96c5e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPositionFetchFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRayTracingPositionFetchFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRelaxedLineRasterizationFeaturesIMG.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRelaxedLineRasterizationFeaturesIMG.gen.cs index 24d446bd34..5846124e92 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRelaxedLineRasterizationFeaturesIMG.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRelaxedLineRasterizationFeaturesIMG.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRepresentativeFragmentTestFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRepresentativeFragmentTestFeaturesNV.gen.cs index a271d8c797..362d6167dc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRepresentativeFragmentTestFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRepresentativeFragmentTestFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRgba10x6FormatsFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRgba10x6FormatsFeaturesEXT.gen.cs index ea3d36c6be..b08aa9bf30 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRgba10x6FormatsFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceRgba10x6FormatsFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceScalarBlockLayoutFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceScalarBlockLayoutFeatures.gen.cs index 3ca15d9b2c..7c124853b2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceScalarBlockLayoutFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceScalarBlockLayoutFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsDispatchParametersPropertiesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsDispatchParametersPropertiesARM.gen.cs index ceff81ae55..93f935112c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsDispatchParametersPropertiesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsDispatchParametersPropertiesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs index c216c0c993..b9710a9cd6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAbortFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAbortFeaturesKHR.gen.cs index 5b34fad534..326bdda890 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAbortFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAbortFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicFloat2FeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicFloat2FeaturesEXT.gen.cs index 06089862e2..a4f959d8e7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicFloat2FeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicFloat2FeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicInt64Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicInt64Features.gen.cs index 2642719c2a..e6111da045 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicInt64Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderAtomicInt64Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCoreBuiltinsFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCoreBuiltinsFeaturesARM.gen.cs index 286c1e3e8c..3ac2215441 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCoreBuiltinsFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCoreBuiltinsFeaturesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCorePropertiesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCorePropertiesARM.gen.cs index 3cfde5da3d..c276c58a3e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCorePropertiesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderCorePropertiesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderDrawParametersFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderDrawParametersFeatures.gen.cs index b84b6d4e0a..5e662b8213 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderDrawParametersFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderDrawParametersFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloat16Int8Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloat16Int8Features.gen.cs index 8311b5ffbe..f695299c9d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloat16Int8Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloat16Int8Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloatControls2Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloatControls2Features.gen.cs index 6bedf52be4..008717bbc6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloatControls2Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFloatControls2Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFmaFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFmaFeaturesKHR.gen.cs index 604796e13e..edc8ef4c1c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFmaFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderFmaFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderImageAtomicInt64FeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderImageAtomicInt64FeaturesEXT.gen.cs index 8f84fd9d7f..e0f482b5a3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderImageAtomicInt64FeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderImageAtomicInt64FeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderIntegerDotProductFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderIntegerDotProductFeatures.gen.cs index 15cd039f8b..2952f2f9a8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderIntegerDotProductFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderIntegerDotProductFeatures.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE.gen.cs index a13036449d..ec135440e2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderMixedFloatDotProductFeaturesVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderObjectFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderObjectFeaturesEXT.gen.cs index fce1991c49..33d5a7c75c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderObjectFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderObjectFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.gen.cs index ac36b3231d..f3f887d565 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderReplicatedCompositesFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderReplicatedCompositesFeaturesEXT.gen.cs index 7a331336a5..86df1e5c07 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderReplicatedCompositesFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderReplicatedCompositesFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsFeaturesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsFeaturesNV.gen.cs index 275597a732..e2d8fc066f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsFeaturesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsFeaturesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsPropertiesNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsPropertiesNV.gen.cs index 5c77971b5f..7d4f36290f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsPropertiesNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSMBuiltinsPropertiesNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierFeaturesEXT.gen.cs index a9121c482c..2c2bf82e4e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierPropertiesEXT.gen.cs index 1ad07e1952..d11e130cdd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSplitBarrierPropertiesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSubgroupExtendedTypesFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSubgroupExtendedTypesFeatures.gen.cs index b3875c29f1..74275f8095 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSubgroupExtendedTypesFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderSubgroupExtendedTypesFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderTileImageFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderTileImageFeaturesEXT.gen.cs index 9008148f69..c4ec259697 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderTileImageFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderTileImageFeaturesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderUntypedPointersFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderUntypedPointersFeaturesKHR.gen.cs index 4c957952b9..2bda92c8ea 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderUntypedPointersFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceShaderUntypedPointersFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubgroupProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubgroupProperties.gen.cs index 89e9b4acec..fecd7030ed 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubgroupProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubgroupProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubpassShadingFeaturesHUAWEI.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubpassShadingFeaturesHUAWEI.gen.cs index 53edb234bb..0ff401cd7c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubpassShadingFeaturesHUAWEI.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSubpassShadingFeaturesHUAWEI.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSurfaceInfo2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSurfaceInfo2KHR.gen.cs index 5bf05df65b..62916d4cb6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSurfaceInfo2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSurfaceInfo2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSynchronization2Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSynchronization2Features.gen.cs index 47c83696d3..c3c19d248a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSynchronization2Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceSynchronization2Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTensorFeaturesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTensorFeaturesARM.gen.cs index 2c158bb7da..0c0c2933af 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTensorFeaturesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTensorFeaturesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTexelBufferAlignmentFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTexelBufferAlignmentFeaturesEXT.gen.cs index ee9ef334a8..4d031122e1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTexelBufferAlignmentFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTexelBufferAlignmentFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileMemoryHeapFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileMemoryHeapFeaturesQCOM.gen.cs index 0fb32f89ab..c798349338 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileMemoryHeapFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileMemoryHeapFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTilePropertiesFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTilePropertiesFeaturesQCOM.gen.cs index 5476b41f14..64a3202f7d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTilePropertiesFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTilePropertiesFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileShadingFeaturesQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileShadingFeaturesQCOM.gen.cs index c67a637e5a..16ddbd7557 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileShadingFeaturesQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceTileShadingFeaturesQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceToolProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceToolProperties.gen.cs index b2688c3386..c7c0f62080 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceToolProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceToolProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceType.gen.cs index 44d049f433..16afc086ac 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUnifiedImageLayoutsFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUnifiedImageLayoutsFeaturesKHR.gen.cs index 1a7a3e9a33..41f834dff8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUnifiedImageLayoutsFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUnifiedImageLayoutsFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUniformBufferStandardLayoutFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUniformBufferStandardLayoutFeatures.gen.cs index fd8a1360e6..f6178452a2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUniformBufferStandardLayoutFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceUniformBufferStandardLayoutFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeFeedback2FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeFeedback2FeaturesKHR.gen.cs index 839038c5d9..e8f38285c7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeFeedback2FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeFeedback2FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.gen.cs index 8e8cdd2e3f..8fe7a48ae8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoEncodeQuantizationMapFeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoFormatInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoFormatInfoKHR.gen.cs index 7d2ced416b..40e3f06b32 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoFormatInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoFormatInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance1FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance1FeaturesKHR.gen.cs index 2d23b133e4..7f4e7f65cb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance1FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance1FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance2FeaturesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance2FeaturesKHR.gen.cs index f066079b6c..aa982e5605 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance2FeaturesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVideoMaintenance2FeaturesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Features.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Features.gen.cs index 52ff72607b..f7ca44a017 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Features.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Features.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Properties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Properties.gen.cs index b4bf9de3d1..197bc3673c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Properties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkan12Properties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkanMemoryModelFeatures.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkanMemoryModelFeatures.gen.cs index c34abd0eb7..15d1cdce96 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkanMemoryModelFeatures.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceVulkanMemoryModelFeatures.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.gen.cs index 4a6456b120..d86efedd92 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryDataInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryDataInfoKHR.gen.cs index a5f156b598..ea9a7b32a2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryDataInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryDataInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryKeysAndDataKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryKeysAndDataKHR.gen.cs index 889ac5279b..8b4d8078d3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryKeysAndDataKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineBinaryKeysAndDataKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCacheCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCacheCreateFlags.gen.cs index 0b6aa53c55..8fc7121cd6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCacheCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCacheCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCacheHeaderVersionDataGraphQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCacheHeaderVersionDataGraphQCOM.gen.cs index a11b1850c3..6a5af1609b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCacheHeaderVersionDataGraphQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCacheHeaderVersionDataGraphQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineColorBlendAdvancedStateCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineColorBlendAdvancedStateCreateInfoEXT.gen.cs index b98ad4bf3e..b45d0c3c1d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineColorBlendAdvancedStateCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineColorBlendAdvancedStateCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineColorWriteCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineColorWriteCreateInfoEXT.gen.cs index 51e4224bf1..217de1a247 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineColorWriteCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineColorWriteCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlCreateInfoAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlCreateInfoAMD.gen.cs index d9960d5e91..b13a0a5273 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlCreateInfoAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlCreateInfoAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlFlagsAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlFlagsAMD.gen.cs index 8d46ff494d..b51e71ea53 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlFlagsAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCompilerControlFlagsAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCreateInfoKHR.gen.cs index c47622ac90..2bf3acca6e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineCreationFeedbackCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineCreationFeedbackCreateInfo.gen.cs index 6ed4d96643..86e48f3b7e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineCreationFeedbackCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineCreationFeedbackCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineDiscardRectangleStateCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineDiscardRectangleStateCreateInfoEXT.gen.cs index e4a6c9cd0f..41a625f193 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineDiscardRectangleStateCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineDiscardRectangleStateCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInfoKHR.gen.cs index 165f49b33e..05dc9daa4b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInternalRepresentationKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInternalRepresentationKHR.gen.cs index 66e6ce5d12..845f7a732f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInternalRepresentationKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableInternalRepresentationKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticFormatKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticFormatKHR.gen.cs index 98eaf8ee7a..fd6386c239 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticFormatKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticFormatKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticValueKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticValueKHR.gen.cs index d683dd850b..ef6c53f4da 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticValueKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineExecutableStatisticValueKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineFragmentShadingRateEnumStateCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineFragmentShadingRateEnumStateCreateInfoNV.gen.cs index 15b9f7be42..a6eda4b850 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineFragmentShadingRateEnumStateCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineFragmentShadingRateEnumStateCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineLayoutCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineLayoutCreateFlags.gen.cs index 18f5b71a2f..5ac5117039 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineLayoutCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineLayoutCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelinePropertiesIdentifierEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelinePropertiesIdentifierEXT.gen.cs index d305743b31..14f07cad3c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelinePropertiesIdentifierEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelinePropertiesIdentifierEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationConservativeStateCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationConservativeStateCreateInfoEXT.gen.cs index e24fad49a3..dc36862860 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationConservativeStateCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationConservativeStateCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationStateCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationStateCreateInfo.gen.cs index 63dacb6159..c6832472bb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationStateCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineRasterizationStateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineRenderingCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineRenderingCreateInfo.gen.cs index 75b7a64913..a13dca57c6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineRenderingCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineRenderingCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineRobustnessCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineRobustnessCreateInfo.gen.cs index 09a0d7c872..aae72dd04b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineRobustnessCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineRobustnessCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineShaderStageCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineShaderStageCreateInfo.gen.cs index 40c448c2e1..f7b3f2f7a5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineShaderStageCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineShaderStageCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineTessellationStateCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineTessellationStateCreateInfo.gen.cs index 6a0bc59986..33b848941a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineTessellationStateCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineTessellationStateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputDivisorStateCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputDivisorStateCreateInfo.gen.cs index 3576ed6fbd..529fa4d145 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputDivisorStateCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputDivisorStateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputStateCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputStateCreateInfo.gen.cs index 7999614ec8..286af7508e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputStateCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineVertexInputStateCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineViewportCoarseSampleOrderStateCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineViewportCoarseSampleOrderStateCreateInfoNV.gen.cs index c16582ad33..3161853e51 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineViewportCoarseSampleOrderStateCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineViewportCoarseSampleOrderStateCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PipelineViewportSwizzleStateCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PipelineViewportSwizzleStateCreateInfoNV.gen.cs index 9b58e6e818..5377a9f152 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PipelineViewportSwizzleStateCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PipelineViewportSwizzleStateCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentIdKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentIdKHR.gen.cs index c23d1afa76..f66d8e47d7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentIdKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentIdKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentInfoKHR.gen.cs index 03586085e8..89dc71c0ae 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentModeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentModeKHR.gen.cs index fcca69fffb..892623f47b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentModeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentModeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentRegionKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentRegionKHR.gen.cs index 3aa5ee1662..56b090ca95 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentRegionKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentRegionKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentRegionsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentRegionsKHR.gen.cs index 52ac6f60ea..964dbc41a2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentRegionsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentRegionsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentTimesInfoGOOGLE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentTimesInfoGOOGLE.gen.cs index 9fa98b9a68..d9c7212367 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentTimesInfoGOOGLE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentTimesInfoGOOGLE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PresentTimingInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PresentTimingInfoEXT.gen.cs index e4ad0b3069..6084e7eb8f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PresentTimingInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PresentTimingInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PrimitiveTopology.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PrimitiveTopology.gen.cs index 4e6c315c87..1c670f3ec8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PrimitiveTopology.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PrimitiveTopology.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ProvokingVertexModeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ProvokingVertexModeEXT.gen.cs index a1dce97b8c..f2d067b896 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ProvokingVertexModeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ProvokingVertexModeEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PushConstantBankInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PushConstantBankInfoNV.gen.cs index 4a551f7aa4..919b3d77ab 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PushConstantBankInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PushConstantBankInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PushConstantRange.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PushConstantRange.gen.cs index f42e527f88..949905e877 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PushConstantRange.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PushConstantRange.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/PushConstantsInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PushConstantsInfo.gen.cs index 6ece73af60..e7951a1146 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PushConstantsInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PushConstantsInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/PushDescriptorSetInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/PushDescriptorSetInfo.gen.cs index dbc876256f..76c2bc440f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/PushDescriptorSetInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/PushDescriptorSetInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/QueryLowLatencySupportNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/QueryLowLatencySupportNV.gen.cs index 6c9fd15b54..f31af73848 100644 --- a/sources/Vulkan/Vulkan/Vulkan/QueryLowLatencySupportNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/QueryLowLatencySupportNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/QueryResultFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/QueryResultFlags.gen.cs index 4550ebf74b..4eacda696e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/QueryResultFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/QueryResultFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/QueueFamilyGlobalPriorityProperties.gen.cs b/sources/Vulkan/Vulkan/Vulkan/QueueFamilyGlobalPriorityProperties.gen.cs index 05b1e7575a..c15d914bd7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/QueueFamilyGlobalPriorityProperties.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/QueueFamilyGlobalPriorityProperties.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupCreateInfoNV.gen.cs index 665a178d5b..5062b426bb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupTypeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupTypeKHR.gen.cs index 75b2364951..fec4f71f97 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupTypeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RayTracingShaderGroupTypeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassCreateFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassCreateFlags.gen.cs index b7e22804d9..fa17ee91fb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassCreateFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassCreateFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassCreationFeedbackCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassCreationFeedbackCreateInfoEXT.gen.cs index 69300ba6b9..abb0ef2ae3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassCreationFeedbackCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassCreationFeedbackCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassFragmentDensityMapOffsetEndInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassFragmentDensityMapOffsetEndInfoEXT.gen.cs index 3961cb5eb4..5eb54e7a38 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassFragmentDensityMapOffsetEndInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassFragmentDensityMapOffsetEndInfoEXT.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.Vulkan; [NativeName("VkRenderPassFragmentDensityMapOffsetEndInfoEXT")] diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassInputAttachmentAspectCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassInputAttachmentAspectCreateInfo.gen.cs index 8d55bf0f02..afb09c8a42 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassInputAttachmentAspectCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassInputAttachmentAspectCreateInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeBeginInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeBeginInfoARM.gen.cs index bdf183540f..98c75264e4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeBeginInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeBeginInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeSubmitInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeSubmitInfoARM.gen.cs index 2939904708..4959382bbc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeSubmitInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassStripeSubmitInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassSubpassFeedbackInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassSubpassFeedbackInfoEXT.gen.cs index 0b5bac773a..f430f5b350 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassSubpassFeedbackInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassSubpassFeedbackInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderPassTileShadingCreateInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderPassTileShadingCreateInfoQCOM.gen.cs index 43ba90e768..6551c8957a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderPassTileShadingCreateInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderPassTileShadingCreateInfoQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingAreaInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingAreaInfo.gen.cs index a6f355147c..a59640367e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingAreaInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingAreaInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsInfoKHR.gen.cs index b8190de92d..cfec64fb7b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsKHR.gen.cs index bd36a42c44..cd24d144f2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentInfo.gen.cs index 052b177d44..0145a347fc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentLocationInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentLocationInfo.gen.cs index 33d7badf49..b01fdf668c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentLocationInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingAttachmentLocationInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/RenderingFragmentShadingRateAttachmentInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/RenderingFragmentShadingRateAttachmentInfoKHR.gen.cs index 9ee6713a47..5de10d3265 100644 --- a/sources/Vulkan/Vulkan/Vulkan/RenderingFragmentShadingRateAttachmentInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/RenderingFragmentShadingRateAttachmentInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ResolveImageInfo2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ResolveImageInfo2.gen.cs index 8ddf5d6411..96f2dfce4a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ResolveImageInfo2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ResolveImageInfo2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ResolveImageModeInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ResolveImageModeInfoKHR.gen.cs index 6a35d12543..c51b0736b2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ResolveImageModeInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ResolveImageModeInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SampleCountFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SampleCountFlags.gen.cs index 403f67e25b..56c8f0f546 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SampleCountFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SampleCountFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerBorderColorComponentMappingCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerBorderColorComponentMappingCreateInfoEXT.gen.cs index 509b2eaf29..c548ee15c7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerBorderColorComponentMappingCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerBorderColorComponentMappingCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorCreateInfoEXT.gen.cs index 92c2ee1f9c..24975fdcb5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorIndexCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorIndexCreateInfoEXT.gen.cs index 53303575b3..6a4a828af1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorIndexCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerCustomBorderColorIndexCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerMipmapMode.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerMipmapMode.gen.cs index 79d3427d46..d2384cd369 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerMipmapMode.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerMipmapMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionCreateInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionCreateInfo.gen.cs index a0fee9849c..16ab0ac9ae 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionCreateInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionCreateInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionInfo.gen.cs index 859d92d266..9f5f783e14 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrConversionInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrRange.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrRange.gen.cs index 376cf09ea7..195f60ae2d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrRange.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SamplerYcbcrRange.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SemaphoreSubmitInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SemaphoreSubmitInfo.gen.cs index aecc543d91..7e379678f1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SemaphoreSubmitInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SemaphoreSubmitInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SemaphoreType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SemaphoreType.gen.cs index bf80526c13..435cff8fc8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SemaphoreType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SemaphoreType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ShaderCodeTypeEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ShaderCodeTypeEXT.gen.cs index b1a6824cfe..fa53492393 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ShaderCodeTypeEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ShaderCodeTypeEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ShaderCorePropertiesFlagsAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ShaderCorePropertiesFlagsAMD.gen.cs index b9d93a60c8..5e578077b5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ShaderCorePropertiesFlagsAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ShaderCorePropertiesFlagsAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ShaderResourceUsageAMD.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ShaderResourceUsageAMD.gen.cs index e6b7235674..f6d7284391 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ShaderResourceUsageAMD.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ShaderResourceUsageAMD.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ShaderStageFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ShaderStageFlags.gen.cs index 57cfec261c..68788ce05e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ShaderStageFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ShaderStageFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ShadingRatePaletteNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ShadingRatePaletteNV.gen.cs index 56ba18627b..60621ee302 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ShadingRatePaletteNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ShadingRatePaletteNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SharedPresentSurfaceCapabilities2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SharedPresentSurfaceCapabilities2KHR.gen.cs index 667a284c7c..23165c7676 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SharedPresentSurfaceCapabilities2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SharedPresentSurfaceCapabilities2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SparseBufferMemoryBindInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SparseBufferMemoryBindInfo.gen.cs index 17ff9637c2..867c01b44d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SparseBufferMemoryBindInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SparseBufferMemoryBindInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SparseImageFormatFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SparseImageFormatFlags.gen.cs index 5b89b7b2b9..1cca723c63 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SparseImageFormatFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SparseImageFormatFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBind.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBind.gen.cs index 73b40cca2c..5e78265529 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBind.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBind.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBindInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBindInfo.gen.cs index 857dda7f53..7f1c01555b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBindInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryBindInfo.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryRequirements2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryRequirements2.gen.cs index e2021421f8..14ddc1f1ec 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryRequirements2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SparseImageMemoryRequirements2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Cdef.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Cdef.gen.cs index 8ab41475af..1ac7c08166 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Cdef.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Cdef.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ColorPrimaries.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ColorPrimaries.gen.cs index 27eb98d12d..307b24619f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ColorPrimaries.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ColorPrimaries.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FilmGrain.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FilmGrain.gen.cs index 95e736a76a..144b9f2266 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FilmGrain.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FilmGrain.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FrameRestorationType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FrameRestorationType.gen.cs index 69a5e9584d..5a761f4709 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FrameRestorationType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1FrameRestorationType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Level.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Level.gen.cs index 68cf37314c..2ff5e7ddbf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Level.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Level.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1LoopRestoration.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1LoopRestoration.gen.cs index 226d677c49..38e3692605 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1LoopRestoration.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1LoopRestoration.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1MatrixCoefficients.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1MatrixCoefficients.gen.cs index 9e6a05f604..ed65d4a1ff 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1MatrixCoefficients.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1MatrixCoefficients.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Profile.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Profile.gen.cs index 339c67830e..351244cc2e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Profile.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Profile.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Quantization.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Quantization.gen.cs index 9c6cf9d62a..298c8de0f4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Quantization.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1Quantization.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ReferenceName.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ReferenceName.gen.cs index a8c7e17410..4f12989254 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ReferenceName.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1ReferenceName.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TileInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TileInfo.gen.cs index 3a93ff44c2..ff854e1bb9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TileInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TileInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TransferCharacteristics.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TransferCharacteristics.gen.cs index 1fd9951b0b..27c87cc3be 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TransferCharacteristics.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TransferCharacteristics.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TxMode.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TxMode.gen.cs index 39d82aae15..c7a0bb40fc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TxMode.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoAv1TxMode.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1PictureInfoFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1PictureInfoFlags.gen.cs index 18c0866a38..28522f7a42 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1PictureInfoFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1PictureInfoFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1ReferenceInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1ReferenceInfo.gen.cs index 7f07eccbba..677b7684e5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1ReferenceInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeAv1ReferenceInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeH265PictureInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeH265PictureInfo.gen.cs index 5b3221f17c..3a09fa1634 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeH265PictureInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoDecodeH265PictureInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeAv1DecoderModelInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeAv1DecoderModelInfo.gen.cs index f96bbcedb5..6320126e9c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeAv1DecoderModelInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeAv1DecoderModelInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264PictureInfoFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264PictureInfoFlags.gen.cs index 62724b7ce3..4b148a6d02 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264PictureInfoFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264PictureInfoFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264SliceHeaderFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264SliceHeaderFlags.gen.cs index 22a354c1dc..247b24f343 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264SliceHeaderFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH264SliceHeaderFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265LongTermRefPics.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265LongTermRefPics.gen.cs index 53e30befaf..d0472e287d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265LongTermRefPics.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265LongTermRefPics.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265PictureInfoFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265PictureInfoFlags.gen.cs index 08084bd400..51f6155efb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265PictureInfoFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265PictureInfoFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceInfoFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceInfoFlags.gen.cs index a95bd605d1..6773e108be 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceInfoFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceInfoFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceListsInfo.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceListsInfo.gen.cs index e6d3bb5183..aa53b65e26 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceListsInfo.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265ReferenceListsInfo.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265SliceSegmentHeaderFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265SliceSegmentHeaderFlags.gen.cs index 4dc997622e..cbeda8368a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265SliceSegmentHeaderFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265SliceSegmentHeaderFlags.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265WeightTableFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265WeightTableFlags.gen.cs index 044dba72f0..3a24093dff 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265WeightTableFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoEncodeH265WeightTableFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264DisableDeblockingFilterIdc.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264DisableDeblockingFilterIdc.gen.cs index ab1c5c64f0..062efbe81f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264DisableDeblockingFilterIdc.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264DisableDeblockingFilterIdc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264HrdParameters.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264HrdParameters.gen.cs index 726fc83ecb..4c0d854f27 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264HrdParameters.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264HrdParameters.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264ScalingLists.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264ScalingLists.gen.cs index 5a9ebf79b1..00b730669d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH264ScalingLists.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH264ScalingLists.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265AspectRatioIdc.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265AspectRatioIdc.gen.cs index 2ca2689d5d..778f4843ad 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265AspectRatioIdc.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265AspectRatioIdc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ChromaFormatIdc.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ChromaFormatIdc.gen.cs index 21c3f1d71f..59d00bd781 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ChromaFormatIdc.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ChromaFormatIdc.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265DecPicBufMgr.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265DecPicBufMgr.gen.cs index 79b19de077..5c49876338 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265DecPicBufMgr.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265DecPicBufMgr.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265HrdFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265HrdFlags.gen.cs index 3345831a46..35ac507f49 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265HrdFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265HrdFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265LevelIdc.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265LevelIdc.gen.cs index 28d8e4880f..cc590023b3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265LevelIdc.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265LevelIdc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureParameterSet.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureParameterSet.gen.cs index 496abf78ef..52edf08803 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureParameterSet.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureParameterSet.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureType.gen.cs index c0391d2c42..2e22965f8d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265PictureType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ProfileIdc.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ProfileIdc.gen.cs index 134f20efcb..a1ae6ec96a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ProfileIdc.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ProfileIdc.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SequenceParameterSet.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SequenceParameterSet.gen.cs index 9908c516f7..d4a6d926e5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SequenceParameterSet.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SequenceParameterSet.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ShortTermRefPicSetFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ShortTermRefPicSetFlags.gen.cs index 83385ccdd6..55008c1358 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ShortTermRefPicSetFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265ShortTermRefPicSetFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SliceType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SliceType.gen.cs index a9b2911176..1b7a282bc8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SliceType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SliceType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SpsVuiFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SpsVuiFlags.gen.cs index c528c97b4a..3179d2f87c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SpsVuiFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265SpsVuiFlags.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265VideoParameterSet.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265VideoParameterSet.gen.cs index f29a60e741..9614aa5900 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoH265VideoParameterSet.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoH265VideoParameterSet.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorConfigFlags.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorConfigFlags.gen.cs index 84b9ab8b17..24ae10c6e3 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorConfigFlags.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorConfigFlags.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorSpace.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorSpace.gen.cs index f54427f82d..7d3994fe8d 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorSpace.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ColorSpace.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9InterpolationFilter.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9InterpolationFilter.gen.cs index 27012bd4fa..290b60858a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9InterpolationFilter.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9InterpolationFilter.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Profile.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Profile.gen.cs index 5338801142..83d8b2cb06 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Profile.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Profile.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ReferenceName.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ReferenceName.gen.cs index 00bfe039c1..55595ac4f7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ReferenceName.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9ReferenceName.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Segmentation.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Segmentation.gen.cs index 66c8ddf2e4..e6edb6f454 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Segmentation.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StdVideoVp9Segmentation.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StencilOp.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StencilOp.gen.cs index a2251f4153..b26a2ffeb1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StencilOp.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StencilOp.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StencilOpState.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StencilOpState.gen.cs index 499b4e7a04..426fba7780 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StencilOpState.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StencilOpState.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/StructureType.gen.cs b/sources/Vulkan/Vulkan/Vulkan/StructureType.gen.cs index 039488ee32..d7754ba848 100644 --- a/sources/Vulkan/Vulkan/Vulkan/StructureType.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/StructureType.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SubpassDescription2.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SubpassDescription2.gen.cs index a8e59edce2..b4ad728ff7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SubpassDescription2.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SubpassDescription2.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SubpassResolvePerformanceQueryEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SubpassResolvePerformanceQueryEXT.gen.cs index 4c84685711..e957cf8f24 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SubpassResolvePerformanceQueryEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SubpassResolvePerformanceQueryEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SubpassSampleLocationsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SubpassSampleLocationsEXT.gen.cs index 8c8632b221..550e4f9b29 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SubpassSampleLocationsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SubpassSampleLocationsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SubpassShadingPipelineCreateInfoHUAWEI.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SubpassShadingPipelineCreateInfoHUAWEI.gen.cs index ecf73f2646..ee875c00fa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SubpassShadingPipelineCreateInfoHUAWEI.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SubpassShadingPipelineCreateInfoHUAWEI.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilities2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilities2KHR.gen.cs index 6651228b7b..712cd6a6b9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilities2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilities2KHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilitiesPresentWait2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilitiesPresentWait2KHR.gen.cs index 5fd71c2ea8..59a6458686 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilitiesPresentWait2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfaceCapabilitiesPresentWait2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfaceFormat2KHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfaceFormat2KHR.gen.cs index e7b42af08d..d9dc3cb850 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfaceFormat2KHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfaceFormat2KHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfaceFormatKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfaceFormatKHR.gen.cs index f780207f92..c60695aa3e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfaceFormatKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfaceFormatKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeCompatibilityKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeCompatibilityKHR.gen.cs index 38f7313a4b..e48df90f00 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeCompatibilityKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeCompatibilityKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeKHR.gen.cs index c2006b9984..ee1cfd34b8 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SurfacePresentModeKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainCounterCreateInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainCounterCreateInfoEXT.gen.cs index 05989139f5..2fca68130b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainCounterCreateInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainCounterCreateInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainCreateFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainCreateFlagsKHR.gen.cs index d9383ef26a..f59e8a0edd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainCreateFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainCreateFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainFlagsSurfaceCapabilitiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainFlagsSurfaceCapabilitiesEXT.gen.cs index f7a1da6c65..7b7525ed7c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainFlagsSurfaceCapabilitiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainFlagsSurfaceCapabilitiesEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainLatencyCreateInfoNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainLatencyCreateInfoNV.gen.cs index 2a300d7a3e..4c9428a794 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainLatencyCreateInfoNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainLatencyCreateInfoNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainPresentFenceInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainPresentFenceInfoKHR.gen.cs index ace260b546..894c36feec 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainPresentFenceInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainPresentFenceInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainTimeDomainPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainTimeDomainPropertiesEXT.gen.cs index ba706728f5..d19d10c284 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainTimeDomainPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainTimeDomainPropertiesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/SwapchainTimingPropertiesEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/SwapchainTimingPropertiesEXT.gen.cs index 30087d3a29..fa72704736 100644 --- a/sources/Vulkan/Vulkan/Vulkan/SwapchainTimingPropertiesEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/SwapchainTimingPropertiesEXT.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/TensorFormatPropertiesARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TensorFormatPropertiesARM.gen.cs index be1e1db1e8..45f470066e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TensorFormatPropertiesARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TensorFormatPropertiesARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/TensorMemoryRequirementsInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TensorMemoryRequirementsInfoARM.gen.cs index 8699f4da37..d5cff233e4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TensorMemoryRequirementsInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TensorMemoryRequirementsInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/TensorViewCaptureDescriptorDataInfoARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TensorViewCaptureDescriptorDataInfoARM.gen.cs index 3afaac8408..85acdc2e32 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TensorViewCaptureDescriptorDataInfoARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TensorViewCaptureDescriptorDataInfoARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/TexelBufferDescriptorInfoEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TexelBufferDescriptorInfoEXT.gen.cs index 7316a1b587..aaa5f1c755 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TexelBufferDescriptorInfoEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TexelBufferDescriptorInfoEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/TileMemoryBindInfoQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TileMemoryBindInfoQCOM.gen.cs index 80f1455d4f..da4db787fb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TileMemoryBindInfoQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TileMemoryBindInfoQCOM.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/TileMemoryRequirementsQCOM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/TileMemoryRequirementsQCOM.gen.cs index e7823c576b..0900db7faa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/TileMemoryRequirementsQCOM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/TileMemoryRequirementsQCOM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ValidationCheckEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ValidationCheckEXT.gen.cs index 21cb3a69e2..9573ed43a7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ValidationCheckEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ValidationCheckEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/ValidationFlagsEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/ValidationFlagsEXT.gen.cs index fd25054307..630999f8ee 100644 --- a/sources/Vulkan/Vulkan/Vulkan/ValidationFlagsEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/ValidationFlagsEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription.gen.cs index ad1606fcb1..cf8158cefd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription2EXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription2EXT.gen.cs index f18285e614..50f819b983 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription2EXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VertexInputBindingDescription2EXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoCapabilitiesKHR.gen.cs index 9aacdf4128..3cca3b81f1 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoCodingControlFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoCodingControlFlagsKHR.gen.cs index 75bb82ed7b..cf541f218a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoCodingControlFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoCodingControlFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1CapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1CapabilitiesKHR.gen.cs index 745c30564b..43db3543ad 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1CapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1CapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1DpbSlotInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1DpbSlotInfoKHR.gen.cs index f18cd38927..0483c7a721 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1DpbSlotInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeAv1DpbSlotInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeCapabilityFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeCapabilityFlagsKHR.gen.cs index 36dcdaabad..f5d11ab773 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeCapabilityFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeCapabilityFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264CapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264CapabilitiesKHR.gen.cs index 40392ec9ad..6faec71956 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264CapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264CapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264PictureInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264PictureInfoKHR.gen.cs index a742cbad92..30216ce172 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264PictureInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH264PictureInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH265CapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH265CapabilitiesKHR.gen.cs index 837e7e741f..d427583a92 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH265CapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeH265CapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9PictureInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9PictureInfoKHR.gen.cs index 65da048609..a72dc73b7e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9PictureInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9PictureInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9ProfileInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9ProfileInfoKHR.gen.cs index 1ac44160b7..df404baa58 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9ProfileInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoDecodeVp9ProfileInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1CapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1CapabilitiesKHR.gen.cs index 22b7ee1719..f36f7c8a2a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1CapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1CapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1GopRemainingFrameInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1GopRemainingFrameInfoKHR.gen.cs index 4a6646c8bb..5efaff25eb 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1GopRemainingFrameInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1GopRemainingFrameInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1PictureInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1PictureInfoKHR.gen.cs index 5b4ce6bce2..072ba67b8e 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1PictureInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1PictureInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1ProfileInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1ProfileInfoKHR.gen.cs index c29e34b3d5..753dec9e9c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1ProfileInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1ProfileInfoKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1QuantizationMapCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1QuantizationMapCapabilitiesKHR.gen.cs index b370ab7f5f..9e9e52095b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1QuantizationMapCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1QuantizationMapCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlFlagsKHR.gen.cs index 85c0011a42..35e0cd18d4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlGroupKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlGroupKHR.gen.cs index c1a59a8610..31001cdaaa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlGroupKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1RateControlGroupKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1StdFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1StdFlagsKHR.gen.cs index e1eadd2eca..77b7630b3a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1StdFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeAv1StdFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilitiesKHR.gen.cs index 4ff7c2774a..12eb0ade5f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilityFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilityFlagsKHR.gen.cs index beed961b10..a6a050a780 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilityFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeCapabilityFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeFlagsKHR.gen.cs index a0df33e4e6..a98cfb51b4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264DpbSlotInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264DpbSlotInfoKHR.gen.cs index 4cfe61914c..c1915f59a7 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264DpbSlotInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264DpbSlotInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264GopRemainingFrameInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264GopRemainingFrameInfoKHR.gen.cs index 751a56ff58..bf3929e475 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264GopRemainingFrameInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264GopRemainingFrameInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264ProfileInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264ProfileInfoKHR.gen.cs index 161efb7094..fa9b5aefea 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264ProfileInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264ProfileInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264QuantizationMapCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264QuantizationMapCapabilitiesKHR.gen.cs index 6def6a64b4..fc012dddb6 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264QuantizationMapCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264QuantizationMapCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersAddInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersAddInfoKHR.gen.cs index 2a5fdefbc4..fcab5775d9 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersAddInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersAddInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersFeedbackInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersFeedbackInfoKHR.gen.cs index 479350d31f..b936c6998f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersFeedbackInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH264SessionParametersFeedbackInfoKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265GopRemainingFrameInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265GopRemainingFrameInfoKHR.gen.cs index 2a4dfbc66a..0cad861ffa 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265GopRemainingFrameInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265GopRemainingFrameInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265ProfileInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265ProfileInfoKHR.gen.cs index 800b927447..4a7e9c55ee 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265ProfileInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265ProfileInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QpKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QpKHR.gen.cs index 907adbbbd5..73c50d9508 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QpKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QpKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QualityLevelPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QualityLevelPropertiesKHR.gen.cs index a8d8c7fb7d..9cd9cc77fc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QualityLevelPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265QualityLevelPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersAddInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersAddInfoKHR.gen.cs index 9a16db49d4..e6b8ad2ed5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersAddInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersAddInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersFeedbackInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersFeedbackInfoKHR.gen.cs index bc45b7c8d9..d2cef4eb73 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersFeedbackInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265SessionParametersFeedbackInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265TransformBlockSizeFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265TransformBlockSizeFlagsKHR.gen.cs index d5bbbfdf0e..e7a6ffaf37 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265TransformBlockSizeFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeH265TransformBlockSizeFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeIntraRefreshCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeIntraRefreshCapabilitiesKHR.gen.cs index a0f00e7732..62d3e1890a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeIntraRefreshCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeIntraRefreshCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeQuantizationMapCapabilitiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeQuantizationMapCapabilitiesKHR.gen.cs index 998b5014b2..dfc3031b0a 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeQuantizationMapCapabilitiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeQuantizationMapCapabilitiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRateControlModeFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRateControlModeFlagsKHR.gen.cs index 8af287d4e2..60001d6e22 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRateControlModeFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRateControlModeFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbConversionCapabilitiesVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbConversionCapabilitiesVALVE.gen.cs index 528df48f04..d6698f0457 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbConversionCapabilitiesVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbConversionCapabilitiesVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbRangeCompressionFlagsVALVE.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbRangeCompressionFlagsVALVE.gen.cs index eee7d0bfff..2d8b7f9632 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbRangeCompressionFlagsVALVE.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeRgbRangeCompressionFlagsVALVE.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionIntraRefreshCreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionIntraRefreshCreateInfoKHR.gen.cs index 18b863d3e1..300023ec75 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionIntraRefreshCreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionIntraRefreshCreateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionParametersFeedbackInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionParametersFeedbackInfoKHR.gen.cs index 71485e7605..240b205e8c 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionParametersFeedbackInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeSessionParametersFeedbackInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageFlagsKHR.gen.cs index e86fcb4568..f786980900 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageInfoKHR.gen.cs index 869923901e..066b1ab3e4 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoEncodeUsageInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoFormatAv1QuantizationMapPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoFormatAv1QuantizationMapPropertiesKHR.gen.cs index fd7db6f3ea..04be355ae2 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoFormatAv1QuantizationMapPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoFormatAv1QuantizationMapPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoFormatH265QuantizationMapPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoFormatH265QuantizationMapPropertiesKHR.gen.cs index 3e662407ca..c56a3cacbd 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoFormatH265QuantizationMapPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoFormatH265QuantizationMapPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoFormatPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoFormatPropertiesKHR.gen.cs index 95e4da6e16..9dde6bfad5 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoFormatPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoFormatPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoFormatQuantizationMapPropertiesKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoFormatQuantizationMapPropertiesKHR.gen.cs index 6312a3baa8..fdda93d334 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoFormatQuantizationMapPropertiesKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoFormatQuantizationMapPropertiesKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoReferenceSlotInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoReferenceSlotInfoKHR.gen.cs index f9e3eb3aa9..8c677c6a26 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoReferenceSlotInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoReferenceSlotInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoSessionCreateFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoSessionCreateFlagsKHR.gen.cs index 2ca356b22d..1d71ee668b 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoSessionCreateFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoSessionCreateFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateFlagsKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateFlagsKHR.gen.cs index 9e3d760210..e53d0e4401 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateFlagsKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateFlagsKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateInfoKHR.gen.cs index 1dfc199d3a..02c80c6f90 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersCreateInfoKHR.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersUpdateInfoKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersUpdateInfoKHR.gen.cs index 1a98b023a3..e4c4e5edbf 100644 --- a/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersUpdateInfoKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/VideoSessionParametersUpdateInfoKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/Viewport.gen.cs b/sources/Vulkan/Vulkan/Vulkan/Viewport.gen.cs index 88df9e8cde..f742f5ff81 100644 --- a/sources/Vulkan/Vulkan/Vulkan/Viewport.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/Viewport.gen.cs @@ -2,7 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/Vk.gen.cs b/sources/Vulkan/Vulkan/Vulkan/Vk.gen.cs index d5fdbb7b9e..01a153d1dc 100644 --- a/sources/Vulkan/Vulkan/Vulkan/Vk.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/Vk.gen.cs @@ -3,8 +3,10 @@ // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; namespace Silk.NET.Vulkan; diff --git a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureKHR.gen.cs b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureKHR.gen.cs index 5a3ac9a9a9..de90da252f 100644 --- a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureKHR.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureKHR.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureNV.gen.cs b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureNV.gen.cs index 828da3ca7f..3506643c55 100644 --- a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureNV.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetAccelerationStructureNV.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetInlineUniformBlock.gen.cs b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetInlineUniformBlock.gen.cs index 824c3abfaa..0670640535 100644 --- a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetInlineUniformBlock.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetInlineUniformBlock.gen.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + namespace Silk.NET.Vulkan; [NativeName("VkWriteDescriptorSetInlineUniformBlock")] diff --git a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetTensorARM.gen.cs b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetTensorARM.gen.cs index 304e84aea6..e31b1b7162 100644 --- a/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetTensorARM.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/WriteDescriptorSetTensorARM.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/sources/Vulkan/Vulkan/Vulkan/WriteIndirectExecutionSetShaderEXT.gen.cs b/sources/Vulkan/Vulkan/Vulkan/WriteIndirectExecutionSetShaderEXT.gen.cs index 6a86d883e7..71fda93afe 100644 --- a/sources/Vulkan/Vulkan/Vulkan/WriteIndirectExecutionSetShaderEXT.gen.cs +++ b/sources/Vulkan/Vulkan/Vulkan/WriteIndirectExecutionSetShaderEXT.gen.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // Ported from the Vulkan headers and corresponding dependencies. // Original source is Copyright 2015-2025 The Khronos Group Inc. Licensed under the MIT license. +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs b/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs index da9e66b66b..9a87d32e7c 100644 --- a/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs +++ b/tests/SilkTouch/SilkTouch/ArrayParameterTransformerTests.cs @@ -5,6 +5,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using Silk.NET.SilkTouch.Mods; using Silk.NET.SilkTouch.Mods.Metadata; using Silk.NET.SilkTouch.Mods.Transformation; @@ -217,14 +218,13 @@ public void Transform( Action next ) => throw new NotImplementedException(); - public string? JobKey { get; set; } public MethodDeclarationSyntax? Original { get; set; } - public IFunctionTransformer[]? Transformers { get; set; } + public IFunctionTransformer[] Transformers { get; set; } + public DocumentFactory DocumentFactory { get; set; } = new(); public bool AddUsing(UsingDirectiveSyntax use) => throw new NotImplementedException(); public bool TryGetChildSymbolMetadata( - string? jobKey, string nativeName, string childNativeName, [NotNullWhen(true)] out SymbolConstraints? metadata @@ -246,17 +246,15 @@ public bool TryGetChildSymbolMetadata( ) ), ], - ElementTypeConstraints: new SymbolConstraints( - [ - new LogicalAnnotation( - LogicalRequirement.Always, - null, - null, - null, - new UsageConstraints() - ), - ] - ), + ElementTypeConstraints: new SymbolConstraints([ + new LogicalAnnotation( + LogicalRequirement.Always, + null, + null, + null, + new UsageConstraints() + ), + ]), IsMutable: childNativeName.Contains('m') ); return true; @@ -278,17 +276,15 @@ public bool TryGetChildSymbolMetadata( ) ), ], - ElementTypeConstraints: new SymbolConstraints( - [ - new LogicalAnnotation( - LogicalRequirement.Always, - null, - null, - null, - new UsageConstraints() - ), - ] - ), + ElementTypeConstraints: new SymbolConstraints([ + new LogicalAnnotation( + LogicalRequirement.Always, + null, + null, + null, + new UsageConstraints() + ), + ]), IsMutable: childNativeName.Contains('m') ); return true; diff --git a/tests/SilkTouch/SilkTouch/DummyJobDependency.cs b/tests/SilkTouch/SilkTouch/DummyJobDependency.cs deleted file mode 100644 index c13b8a6a69..0000000000 --- a/tests/SilkTouch/SilkTouch/DummyJobDependency.cs +++ /dev/null @@ -1,13 +0,0 @@ -// 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.SilkTouch.UnitTests; - -public class DummyJobDependency : IJobDependency -{ - public DummyJobDependency(IEnumerable values) => Values = values; - - public IEnumerable Values { get; } - - public IEnumerable Get(string? jobKey) => Values; -} diff --git a/tests/SilkTouch/SilkTouch/DummyModContext.cs b/tests/SilkTouch/SilkTouch/DummyModContext.cs index 1ce9b55a70..f7d0be90ff 100644 --- a/tests/SilkTouch/SilkTouch/DummyModContext.cs +++ b/tests/SilkTouch/SilkTouch/DummyModContext.cs @@ -10,8 +10,8 @@ public class DummyModContext : IModContext { public ValueTask DisposeAsync() => ValueTask.CompletedTask; - public string JobKey { get; set; } = string.Empty; - public string? ConfigurationDirectory { get; set; } + public string JobKey { get; set; } = "Test"; + public string? WorkingDirectory { get; set; } public Project? SourceProject { get; set; } public Project? TestProject { get; set; } } diff --git a/tests/SilkTouch/SilkTouch/DummyOptions.cs b/tests/SilkTouch/SilkTouch/DummyOptions.cs deleted file mode 100644 index 77479f0fd1..0000000000 --- a/tests/SilkTouch/SilkTouch/DummyOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// 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; -using Microsoft.Extensions.Options; - -namespace Silk.NET.SilkTouch.UnitTests; - -public class DummyOptions< - [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T -> : IOptionsSnapshot - where T : class -{ - public DummyOptions(T value) => Value = value; - - public T Value { get; } - - public T Get(string? name) => Value; -} diff --git a/tests/SilkTouch/SilkTouch/DummyTransformationContext.cs b/tests/SilkTouch/SilkTouch/DummyTransformationContext.cs index 30073e380a..beea42eea9 100644 --- a/tests/SilkTouch/SilkTouch/DummyTransformationContext.cs +++ b/tests/SilkTouch/SilkTouch/DummyTransformationContext.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis.CSharp.Syntax; +using Silk.NET.SilkTouch.Mods; using Silk.NET.SilkTouch.Mods.Transformation; namespace Silk.NET.SilkTouch.UnitTests; @@ -10,7 +11,9 @@ public class DummyTransformationContext : ITransformationContext { public string? JobKey { get; set; } = "Test"; public MethodDeclarationSyntax? Original { get; set; } - public IFunctionTransformer[]? Transformers { get; set; } = []; + public IFunctionTransformer[] Transformers { get; set; } = []; + public DocumentFactory DocumentFactory { get; set; } = new(); + public Predicate OnAddUsing = _ => true; public bool AddUsing(UsingDirectiveSyntax use) => OnAddUsing.Invoke(use); diff --git a/tests/SilkTouch/SilkTouch/ExtractEnumConstantsTests.cs b/tests/SilkTouch/SilkTouch/ExtractEnumConstantsTests.cs index b50e67ccbd..c5a2d8a7cc 100644 --- a/tests/SilkTouch/SilkTouch/ExtractEnumConstantsTests.cs +++ b/tests/SilkTouch/SilkTouch/ExtractEnumConstantsTests.cs @@ -63,8 +63,9 @@ public class Test .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractEnumConstants = new ExtractEnumConstants(); + var extractEnumConstants = new ExtractEnumConstants(documentFactory); await extractEnumConstants.ExecuteAsync(context); @@ -121,8 +122,9 @@ public static extern byte SDL_SetSurfaceBlendMode( .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractEnumConstants = new ExtractEnumConstants(); + var extractEnumConstants = new ExtractEnumConstants(documentFactory); await extractEnumConstants.ExecuteAsync(context); @@ -179,8 +181,9 @@ public static extern byte SDL_GetSurfaceBlendMode( .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractEnumConstants = new ExtractEnumConstants(); + var extractEnumConstants = new ExtractEnumConstants(documentFactory); await extractEnumConstants.ExecuteAsync(context); @@ -241,8 +244,9 @@ SDL_BlendOperation alphaOperation .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractEnumConstants = new ExtractEnumConstants(); + var extractEnumConstants = new ExtractEnumConstants(documentFactory); await extractEnumConstants.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/ExtractFunctionPointersTests.cs b/tests/SilkTouch/SilkTouch/ExtractFunctionPointersTests.cs index 0f53b33375..78fddd17a4 100644 --- a/tests/SilkTouch/SilkTouch/ExtractFunctionPointersTests.cs +++ b/tests/SilkTouch/SilkTouch/ExtractFunctionPointersTests.cs @@ -46,9 +46,11 @@ public delegate* unmanaged< .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); var extractFunctionPointers = new ExtractFunctionPointers( - NullLogger.Instance + NullLogger.Instance, + documentFactory ); await extractFunctionPointers.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/ExtractHandlesTests.cs b/tests/SilkTouch/SilkTouch/ExtractHandlesTests.cs index 3d3679afd5..5e80d4682a 100644 --- a/tests/SilkTouch/SilkTouch/ExtractHandlesTests.cs +++ b/tests/SilkTouch/SilkTouch/ExtractHandlesTests.cs @@ -40,8 +40,12 @@ public static extern VkResult vkCreateInstance( .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractHandles = new ExtractHandles(NullLogger.Instance); + var extractHandles = new ExtractHandles( + NullLogger.Instance, + documentFactory + ); await extractHandles.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/ExtractNestedTypesTests.cs b/tests/SilkTouch/SilkTouch/ExtractNestedTypesTests.cs index f8c0f8cab0..683eb959b0 100644 --- a/tests/SilkTouch/SilkTouch/ExtractNestedTypesTests.cs +++ b/tests/SilkTouch/SilkTouch/ExtractNestedTypesTests.cs @@ -44,8 +44,9 @@ public struct _name_e__FixedBuffer .Project; var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var extractNestedTyping = new ExtractNestedTypes(); + var extractNestedTyping = new ExtractNestedTypes(documentFactory); await extractNestedTyping.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/FunctionTransformation/ArrayParameterTransformerTests.cs b/tests/SilkTouch/SilkTouch/FunctionTransformation/ArrayParameterTransformerTests.cs index e7c7e3a239..fd162a3d1f 100644 --- a/tests/SilkTouch/SilkTouch/FunctionTransformation/ArrayParameterTransformerTests.cs +++ b/tests/SilkTouch/SilkTouch/FunctionTransformation/ArrayParameterTransformerTests.cs @@ -57,7 +57,6 @@ private class SingularizeAffixedName_ShouldSingularizeBaseName_MetadataProvider IFunctionTransformer { public bool TryGetChildSymbolMetadata( - string? jobKey, string nativeName, string childNativeName, [NotNullWhen(true)] out SymbolConstraints? metadata @@ -128,7 +127,6 @@ private class SingularizeAffixedName_ShouldNotAffectAffix_MetadataProvider IFunctionTransformer { public bool TryGetChildSymbolMetadata( - string? jobKey, string nativeName, string childNativeName, [NotNullWhen(true)] out SymbolConstraints? metadata diff --git a/tests/SilkTouch/SilkTouch/InterceptNativeFunctionsTests.cs b/tests/SilkTouch/SilkTouch/InterceptNativeFunctionsTests.cs index af0c31a491..531d08960c 100644 --- a/tests/SilkTouch/SilkTouch/InterceptNativeFunctionsTests.cs +++ b/tests/SilkTouch/SilkTouch/InterceptNativeFunctionsTests.cs @@ -47,12 +47,10 @@ public static extern VkResult vkCreateDevice( var context = new DummyModContext() { SourceProject = project }; var interceptNativeFunctions = new InterceptNativeFunctions( - new DummyOptions( - new InterceptNativeFunctions.Configuration() - { - NativeFunctionNames = ["vkCreateInstance"], - } - ) + new InterceptNativeFunctions.Configuration() + { + NativeFunctionNames = ["vkCreateInstance"], + } ); await interceptNativeFunctions.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/Khronos/MixKhronosDataTests.cs b/tests/SilkTouch/SilkTouch/Khronos/MixKhronosDataTests.cs index ee4806f000..6fd3d320d6 100644 --- a/tests/SilkTouch/SilkTouch/Khronos/MixKhronosDataTests.cs +++ b/tests/SilkTouch/SilkTouch/Khronos/MixKhronosDataTests.cs @@ -48,13 +48,12 @@ private static IAsyncEnumerable TestCases() async (x, ct) => { var mod = new MixKhronosData( + new DocumentFactory(), new NullLogger(), - new DummyOptions( - new MixKhronosData.Configuration { SpecPath = TestFile(x) } - ) + new MixKhronosData.Configuration { SpecPath = TestFile(x) } ); await mod.InitializeAsync(new DummyModContext(), ct); - return (object[])[x, mod.Jobs[""]]; + return (object[])[x, mod.Job]; } ); } @@ -258,7 +257,8 @@ public Task SupportedApiProfiles(string file, object data) => .SupportedApiProfiles?.OrderBy(x => x.Key) .Select(x => $"{x.Key}\n{new string('-', x.Key.Length)}\n{string.Join('\n', x.Value.Select(y => AttributeList(SingletonSeparatedList(y.GetSupportedApiProfileAttribute())).ToString()).Order())}\n" - ) ?? [] + ) + ?? [] ) ) .UseFileName($"{nameof(MixKhronosDataTests)}.{nameof(SupportedApiProfiles)}.{file}"); @@ -315,17 +315,19 @@ public enum OcclusionQueryParameterNameNV ) .Project; - var context = new DummyModContext() { JobKey = "OpenGL", SourceProject = project }; + var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var mixKhronosData = new MixKhronosData(NullLogger.Instance, null!) + var mixKhronosData = new MixKhronosData( + documentFactory, + NullLogger.Instance, + null! + ) { - Jobs = + Job = new MixKhronosData.JobData { - ["OpenGL"] = new MixKhronosData.JobData - { - Configuration = new MixKhronosData.Configuration(), - Vendors = ["NV"], - }, + Configuration = new MixKhronosData.Configuration(), + Vendors = ["NV"], }, }; @@ -352,20 +354,22 @@ public enum OcclusionQueryParameterNameNV ) .Project; - var context = new DummyModContext() { JobKey = "OpenGL", SourceProject = project }; + var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var mixKhronosData = new MixKhronosData(NullLogger.Instance, null!) + var mixKhronosData = new MixKhronosData( + documentFactory, + NullLogger.Instance, + null! + ) { - Jobs = + Job = new MixKhronosData.JobData { - ["OpenGL"] = new MixKhronosData.JobData + Configuration = new MixKhronosData.Configuration() { - Configuration = new MixKhronosData.Configuration() - { - IdentifyEnumMemberImpliedVendors = true, - }, - Vendors = ["NV"], + IdentifyEnumMemberImpliedVendors = true, }, + Vendors = ["NV"], }, }; @@ -393,20 +397,22 @@ public enum BufferUsageARB : uint ) .Project; - var context = new DummyModContext() { JobKey = "OpenGL", SourceProject = project }; + var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var mixKhronosData = new MixKhronosData(NullLogger.Instance, null!) + var mixKhronosData = new MixKhronosData( + documentFactory, + NullLogger.Instance, + null! + ) { - Jobs = + Job = new MixKhronosData.JobData { - ["OpenGL"] = new MixKhronosData.JobData + Configuration = new MixKhronosData.Configuration() { - Configuration = new MixKhronosData.Configuration() - { - IdentifyEnumTypeNonExclusiveVendors = true, - }, - Vendors = ["ARB"], + IdentifyEnumTypeNonExclusiveVendors = true, }, + Vendors = ["ARB"], }, }; @@ -431,27 +437,29 @@ public enum GLEnum { } ) .Project; - var context = new DummyModContext() { JobKey = "OpenGL", SourceProject = project }; + var context = new DummyModContext() { SourceProject = project }; + var documentFactory = new DocumentFactory(); - var mixKhronosData = new MixKhronosData(NullLogger.Instance, null!) + var mixKhronosData = new MixKhronosData( + documentFactory, + NullLogger.Instance, + null! + ) { - Jobs = + Job = new MixKhronosData.JobData { - ["OpenGL"] = new MixKhronosData.JobData + Configuration = new MixKhronosData.Configuration(), + Groups = { - Configuration = new MixKhronosData.Configuration(), - Groups = { + "GLenum", + new MixKhronosData.EnumGroup() { - "GLenum", - new MixKhronosData.EnumGroup() - { - Name = "GLEnum", - NativeName = "GLenum", - BaseType = "GLenum", - Namespace = "GL", - } - }, + Name = "GLEnum", + NativeName = "GLenum", + BaseType = "GLenum", + Namespace = "GL", + } }, }, }, diff --git a/tests/SilkTouch/SilkTouch/Naming/IdentifySharedPrefixesTests.cs b/tests/SilkTouch/SilkTouch/Naming/IdentifySharedPrefixesTests.cs index 6691c47d17..49627eb75a 100644 --- a/tests/SilkTouch/SilkTouch/Naming/IdentifySharedPrefixesTests.cs +++ b/tests/SilkTouch/SilkTouch/Naming/IdentifySharedPrefixesTests.cs @@ -36,9 +36,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -69,9 +67,7 @@ public enum VocalMorpherPhoneme var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -108,12 +104,10 @@ public struct GLFWwindow; var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - { - GlobalPrefixHints = hint is null ? [] : [hint], - } - ) + new IdentifySharedPrefixes.Configuration() + { + GlobalPrefixHints = hint is null ? [] : [hint], + } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -140,9 +134,7 @@ public enum VkPresentIdKHR { } var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -174,9 +166,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -206,9 +196,7 @@ public struct ID3D12Device; var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -234,9 +222,7 @@ public struct ID3D12Device; var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["D3D12"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["D3D12"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -269,9 +255,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -298,9 +282,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -341,9 +323,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -373,9 +353,7 @@ public enum OcclusionQueryParameterNameNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -413,9 +391,7 @@ public enum VkPresentModeKHR var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -437,9 +413,7 @@ public async Task IdentifiesPrefix_WhenMatchingHint() var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["vk"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["vk"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -459,9 +433,7 @@ public async Task DoesNotIdentifyPrefix_WhenSingleName_WithNoHint() var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() - ) + new IdentifySharedPrefixes.Configuration() ); await identifySharedPrefixes.ExecuteAsync(context); @@ -484,9 +456,7 @@ public async Task DoesNotIdentifyPrefix_WhenSingleName_WithNonMatchingHint() var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -512,9 +482,7 @@ public enum GLEnum { } var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -547,9 +515,7 @@ public enum FragmentShaderDestModMask var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -579,9 +545,7 @@ public enum EvalTargetNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -610,9 +574,7 @@ public enum EvalMapsModeNV var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["gl"] } ); await identifySharedPrefixes.ExecuteAsync(context); @@ -641,9 +603,7 @@ public enum ContextFlagsEXT var context = new DummyModContext() { SourceProject = project }; var identifySharedPrefixes = new IdentifySharedPrefixes( - new DummyOptions( - new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["alc", "al"] } - ) + new IdentifySharedPrefixes.Configuration() { GlobalPrefixHints = ["alc", "al"] } ); await identifySharedPrefixes.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/Naming/PrettifyNamesTests.cs b/tests/SilkTouch/SilkTouch/Naming/PrettifyNamesTests.cs index 010ddc7037..815271d337 100644 --- a/tests/SilkTouch/SilkTouch/Naming/PrettifyNamesTests.cs +++ b/tests/SilkTouch/SilkTouch/Naming/PrettifyNamesTests.cs @@ -42,19 +42,17 @@ public enum InternalFormat var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + LongAcronymThreshold = 3, + Affixes = { - LongAcronymThreshold = 3, - Affixes = { - { - "SharedPrefix", - new PrettifyNames.NameAffixConfiguration() { Remove = true } - }, + "SharedPrefix", + new PrettifyNames.NameAffixConfiguration() { Remove = true } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -105,19 +103,17 @@ public enum ALEnum var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + LongAcronymThreshold = 4, + Affixes = { - LongAcronymThreshold = 4, - Affixes = { - { - "SharedPrefix", - new PrettifyNames.NameAffixConfiguration() { Remove = true } - }, + "SharedPrefix", + new PrettifyNames.NameAffixConfiguration() { Remove = true } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -159,31 +155,29 @@ public void alGetBufferPtrvDirectSOFT() { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + LongAcronymThreshold = 4, + Affixes = { - LongAcronymThreshold = 4, - Affixes = { + "SharedPrefix", + new PrettifyNames.NameAffixConfiguration() { - "SharedPrefix", - new PrettifyNames.NameAffixConfiguration() - { - DiscriminatorPriority = 0, - IsDiscriminator = true, - } - }, + DiscriminatorPriority = 0, + IsDiscriminator = true, + } + }, + { + "KhronosFunctionDataType", + new PrettifyNames.NameAffixConfiguration() { - "KhronosFunctionDataType", - new PrettifyNames.NameAffixConfiguration() - { - DiscriminatorPriority = 1, - IsDiscriminator = true, - } - }, + DiscriminatorPriority = 1, + IsDiscriminator = true, + } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -227,31 +221,29 @@ public void alGetBufferPtrvDirectSOFT() { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + LongAcronymThreshold = 4, + Affixes = { - LongAcronymThreshold = 4, - Affixes = { + "SharedPrefix", + new PrettifyNames.NameAffixConfiguration() { - "SharedPrefix", - new PrettifyNames.NameAffixConfiguration() - { - DiscriminatorPriority = 1, - IsDiscriminator = true, - } - }, + DiscriminatorPriority = 1, + IsDiscriminator = true, + } + }, + { + "KhronosFunctionDataType", + new PrettifyNames.NameAffixConfiguration() { - "KhronosFunctionDataType", - new PrettifyNames.NameAffixConfiguration() - { - DiscriminatorPriority = 0, - IsDiscriminator = true, - } - }, + DiscriminatorPriority = 0, + IsDiscriminator = true, + } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -288,7 +280,7 @@ public struct GamepadBindingInputAxis { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); await prettifyNames.ExecuteAsync(context); @@ -319,7 +311,7 @@ public struct A var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); await prettifyNames.ExecuteAsync(context); @@ -353,7 +345,7 @@ public struct B var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); await prettifyNames.ExecuteAsync(context); @@ -384,12 +376,10 @@ public struct ALBUFFERCALLBACKTYPESOFT; var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() - { - NameOverrides = { { "ALBUFFERCALLBACKTYPESOFT", "BufferCallbackSOFT" } }, - } - ) + new PrettifyNames.Configuration() + { + NameOverrides = { { "ALBUFFERCALLBACKTYPESOFT", "BufferCallbackSOFT" } }, + } ); await prettifyNames.ExecuteAsync(context); @@ -419,7 +409,7 @@ public struct B { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); Assert.ThrowsAsync(async () => @@ -446,7 +436,7 @@ public struct A { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); Assert.ThrowsAsync(async () => @@ -480,20 +470,17 @@ public class Sdl var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() { - Value = + Affixes = { - Affixes = { + "SharedPrefix", + new PrettifyNames.NameAffixConfiguration() { - "SharedPrefix", - new PrettifyNames.NameAffixConfiguration() - { - DiscriminatorPriority = 0, - IsDiscriminator = true, - } - }, + DiscriminatorPriority = 0, + IsDiscriminator = true, + } }, }, } @@ -526,7 +513,7 @@ public struct BaseName { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions(new PrettifyNames.Configuration()) + new PrettifyNames.Configuration() ); await prettifyNames.ExecuteAsync(context); @@ -553,18 +540,16 @@ public struct BaseName { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + Affixes = { - Affixes = { - { - "TestPrefix", - new PrettifyNames.NameAffixConfiguration() { Prettify = true } - }, + "TestPrefix", + new PrettifyNames.NameAffixConfiguration() { Prettify = true } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -592,22 +577,20 @@ public struct BaseName { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + Affixes = { - Affixes = { - { - "TestPrefix1", - new PrettifyNames.NameAffixConfiguration() { Prettify = true } - }, - { - "TestPrefix2", - new PrettifyNames.NameAffixConfiguration() { Prettify = true } - }, + "TestPrefix1", + new PrettifyNames.NameAffixConfiguration() { Prettify = true } }, - } - ) + { + "TestPrefix2", + new PrettifyNames.NameAffixConfiguration() { Prettify = true } + }, + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -634,18 +617,16 @@ public struct BaseName { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + Affixes = { - Affixes = { - { - "TestPrefix", - new PrettifyNames.NameAffixConfiguration() { Capitalize = true } - }, + "TestPrefix", + new PrettifyNames.NameAffixConfiguration() { Capitalize = true } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); @@ -672,22 +653,20 @@ public struct BaseName { } var prettifyNames = new PrettifyNames( NullLogger.Instance, - new DummyOptions( - new PrettifyNames.Configuration() + new PrettifyNames.Configuration() + { + Affixes = { - Affixes = { + "TestPrefix", + new PrettifyNames.NameAffixConfiguration() { - "TestPrefix", - new PrettifyNames.NameAffixConfiguration() - { - Prettify = true, - Capitalize = true, - } - }, + Prettify = true, + Capitalize = true, + } }, - } - ) + }, + } ); await prettifyNames.ExecuteAsync(context); diff --git a/tests/SilkTouch/SilkTouch/TransformHandlesTests.cs b/tests/SilkTouch/SilkTouch/TransformHandlesTests.cs index 6e8ffb6154..35dd18b4b7 100644 --- a/tests/SilkTouch/SilkTouch/TransformHandlesTests.cs +++ b/tests/SilkTouch/SilkTouch/TransformHandlesTests.cs @@ -41,9 +41,7 @@ public static extern VkResult vkCreateInstance( var context = new DummyModContext() { SourceProject = project }; var transformHandles = new TransformHandles( - new DummyOptions( - new TransformHandles.Config() { UseDsl = false } - ), + new TransformHandles.Configuration() { UseDsl = false }, NullLogger.Instance ); @@ -77,9 +75,7 @@ public static extern VkResult vkCreateInstance( var context = new DummyModContext() { SourceProject = project }; var transformHandles = new TransformHandles( - new DummyOptions( - new TransformHandles.Config() { UseDsl = true } - ), + new TransformHandles.Configuration() { UseDsl = true }, NullLogger.Instance ); @@ -114,9 +110,7 @@ public static extern VkResult vkCreateInstance( var context = new DummyModContext() { SourceProject = project }; var transformHandles = new TransformHandles( - new DummyOptions( - new TransformHandles.Config() { UseDsl = true } - ), + new TransformHandles.Configuration() { UseDsl = true }, NullLogger.Instance ); diff --git a/tests/SilkTouch/SilkTouch/TransformPropertiesTests.cs b/tests/SilkTouch/SilkTouch/TransformPropertiesTests.cs index d852356f5f..daf70781be 100644 --- a/tests/SilkTouch/SilkTouch/TransformPropertiesTests.cs +++ b/tests/SilkTouch/SilkTouch/TransformPropertiesTests.cs @@ -34,9 +34,7 @@ public struct Test var context = new DummyModContext() { SourceProject = project }; var transformProperties = new TransformProperties( - new DummyOptions( - new TransformProperties.Configuration() { BoolTypes = { { "TestBool32", null } } } - ) + new TransformProperties.Configuration() { BoolTypes = { { "TestBool32", null } } } ); await transformProperties.ExecuteAsync(context); @@ -86,9 +84,7 @@ public struct NoTransform var context = new DummyModContext() { SourceProject = project }; var transformProperties = new TransformProperties( - new DummyOptions( - new TransformProperties.Configuration() { BoolTypes = { { "TestBool32", null } } } - ) + new TransformProperties.Configuration() { BoolTypes = { { "TestBool32", null } } } ); await transformProperties.ExecuteAsync(context);