diff --git a/build/cache/cl.json.gz b/build/cache/cl.json.gz index 6ef598a7d6..308956aef6 100644 Binary files a/build/cache/cl.json.gz and b/build/cache/cl.json.gz differ diff --git a/build/cache/vulkan.json.gz b/build/cache/vulkan.json.gz index 7b00239b89..1f3e530034 100644 Binary files a/build/cache/vulkan.json.gz and b/build/cache/vulkan.json.gz differ diff --git a/build/submodules/ANGLE b/build/submodules/ANGLE index 24dabdbbee..803c3b1032 160000 --- a/build/submodules/ANGLE +++ b/build/submodules/ANGLE @@ -1 +1 @@ -Subproject commit 24dabdbbeee213d7a1fd01a70cddacc1949d3b26 +Subproject commit 803c3b103234c6f73587d2e6e4e1bba1377bbede diff --git a/build/submodules/Assimp b/build/submodules/Assimp index 6a08c39e3a..9519a62dd2 160000 --- a/build/submodules/Assimp +++ b/build/submodules/Assimp @@ -1 +1 @@ -Subproject commit 6a08c39e3a91ef385e76515cfad86aca4bfd57ff +Subproject commit 9519a62dd20799c5493c638d1ef5a6f484e5faf1 diff --git a/build/submodules/GLFW b/build/submodules/GLFW index 1ad5df8032..7482de6071 160000 --- a/build/submodules/GLFW +++ b/build/submodules/GLFW @@ -1 +1 @@ -Subproject commit 1ad5df803239250c43e021f92fe87b738f231f8b +Subproject commit 7482de6071d21db77a7236155da44c172a7f6c9e diff --git a/build/submodules/MoltenVK b/build/submodules/MoltenVK index 02a8c011a8..568cc3acc0 160000 --- a/build/submodules/MoltenVK +++ b/build/submodules/MoltenVK @@ -1 +1 @@ -Subproject commit 02a8c011a8ca077dfaa09f3b7ebf68be869dc26f +Subproject commit 568cc3acc0e2299931fdaecaaa1fc3ec5b4af281 diff --git a/build/submodules/SDL b/build/submodules/SDL index 4761467b2e..ffa78e6bea 160000 --- a/build/submodules/SDL +++ b/build/submodules/SDL @@ -1 +1 @@ -Subproject commit 4761467b2e8cc7db3d6bc98747daca0051858f09 +Subproject commit ffa78e6bead23e2ba3adf8ec2367ff2218d4343c diff --git a/build/submodules/SPIRV-Cross b/build/submodules/SPIRV-Cross index bccaa94db8..12542fc6fc 160000 --- a/build/submodules/SPIRV-Cross +++ b/build/submodules/SPIRV-Cross @@ -1 +1 @@ -Subproject commit bccaa94db814af33d8ef05c153e7c34d8bd4d685 +Subproject commit 12542fc6fc05000e04742daf93892a0b10edbe80 diff --git a/build/submodules/SPIRV-Headers b/build/submodules/SPIRV-Headers index 124a9665e4..d0006a3938 160000 --- a/build/submodules/SPIRV-Headers +++ b/build/submodules/SPIRV-Headers @@ -1 +1 @@ -Subproject commit 124a9665e464ef98b8b718d572d5f329311061eb +Subproject commit d0006a3938d7acedffb26ab517fe3e95b5288cc6 diff --git a/build/submodules/SPIRV-Reflect b/build/submodules/SPIRV-Reflect index d7e316e7d5..a7c7b8a99f 160000 --- a/build/submodules/SPIRV-Reflect +++ b/build/submodules/SPIRV-Reflect @@ -1 +1 @@ -Subproject commit d7e316e7d592d16ac58f1fe39b1df7babfe65c0d +Subproject commit a7c7b8a99f8fa7e21ec37f591a427196262659c4 diff --git a/build/submodules/SPIRV-Tools b/build/submodules/SPIRV-Tools index e553b884c7..a63ac9f73d 160000 --- a/build/submodules/SPIRV-Tools +++ b/build/submodules/SPIRV-Tools @@ -1 +1 @@ -Subproject commit e553b884c7c9febaa4e52334f683641fb5f196a0 +Subproject commit a63ac9f73d29cd27cdb6e3388d98d1d934e512bb diff --git a/build/submodules/Vulkan-Headers b/build/submodules/Vulkan-Headers index 7e69138016..ed857118e2 160000 --- a/build/submodules/Vulkan-Headers +++ b/build/submodules/Vulkan-Headers @@ -1 +1 @@ -Subproject commit 7e691380166fb1cd9b193ac9db896bc23a4ea9ad +Subproject commit ed857118e243fdc0f3a100f00ac9919e874cfe63 diff --git a/build/submodules/Vulkan-Loader b/build/submodules/Vulkan-Loader index 6d4f07c995..dce85674e2 160000 --- a/build/submodules/Vulkan-Loader +++ b/build/submodules/Vulkan-Loader @@ -1 +1 @@ -Subproject commit 6d4f07c995975f12d0d8d7a8483cdcbf6c455108 +Subproject commit dce85674e249f7b6956842dd6df067b70060c483 diff --git a/build/submodules/dxvk b/build/submodules/dxvk index 80e075406b..cae0a1cef3 160000 --- a/build/submodules/dxvk +++ b/build/submodules/dxvk @@ -1 +1 @@ -Subproject commit 80e075406b1b7d9d2508c9dc05e9745b3d3cf7e2 +Subproject commit cae0a1cef3f4917cf525c5546da302ff5f968e8e diff --git a/build/submodules/shaderc b/build/submodules/shaderc index 39aa522785..4dc596ddc2 160000 --- a/build/submodules/shaderc +++ b/build/submodules/shaderc @@ -1 +1 @@ -Subproject commit 39aa522785f130130927cd4766a37e8813af6d66 +Subproject commit 4dc596ddc2702092c670e828745dc3e0338d83c1 diff --git a/build/submodules/webgpu-headers b/build/submodules/webgpu-headers index fe60050d67..d123885757 160000 --- a/build/submodules/webgpu-headers +++ b/build/submodules/webgpu-headers @@ -1 +1 @@ -Subproject commit fe60050d672eb5c9da75987d827a1ae7b35884a6 +Subproject commit d12388575785f254b5c186667e0c1b79e4da46b1 diff --git a/build/submodules/wgpu-native b/build/submodules/wgpu-native index 24e00f4711..baaee05f9e 160000 --- a/build/submodules/wgpu-native +++ b/build/submodules/wgpu-native @@ -1 +1 @@ -Subproject commit 24e00f4711888cc7a11c26853b1be3bc35c1e6bb +Subproject commit baaee05f9e4476e4f8e4cd21fe078bc314a54741 diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunch.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunch.gen.cs new file mode 100644 index 0000000000..7a37890909 --- /dev/null +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunch.gen.cs @@ -0,0 +1,133 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; +using Silk.NET.Vulkan; +using Extension = Silk.NET.Core.Attributes.ExtensionAttribute; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan.Extensions.NV +{ + [Extension("VK_NV_cuda_kernel_launch")] + public unsafe partial class NVCudaKernelLaunch : NativeExtension + { + public const string ExtensionName = "VK_NV_cuda_kernel_launch"; + /// To be documented. + [NativeApi(EntryPoint = "vkCmdCudaLaunchKernelNV", Convention = CallingConvention.Winapi)] + public unsafe partial void CmdCudaLaunchKernel([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaLaunchInfoNV* pLaunchInfo); + + /// To be documented. + [NativeApi(EntryPoint = "vkCmdCudaLaunchKernelNV", Convention = CallingConvention.Winapi)] + public partial void CmdCudaLaunchKernel([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaLaunchInfoNV pLaunchInfo); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaFunctionNV pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaFunctionNV pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaFunctionCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaFunctionCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaFunctionNV pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaFunctionCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaFunctionNV", Convention = CallingConvention.Winapi)] + public partial Result CreateCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaFunctionCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaFunctionNV pFunction); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaModuleNV pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaModuleNV pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaModuleCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaModuleCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaModuleNV pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaModuleCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkCreateCudaModuleNV", Convention = CallingConvention.Winapi)] + public partial Result CreateCudaModule([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in CudaModuleCreateInfoNV pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out CudaModuleNV pModule); + + /// To be documented. + [NativeApi(EntryPoint = "vkDestroyCudaFunctionNV", Convention = CallingConvention.Winapi)] + public unsafe partial void DestroyCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0)] CudaFunctionNV function, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator); + + /// To be documented. + [NativeApi(EntryPoint = "vkDestroyCudaFunctionNV", Convention = CallingConvention.Winapi)] + public partial void DestroyCudaFunction([Count(Count = 0)] Device device, [Count(Count = 0)] CudaFunctionNV function, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator); + + /// To be documented. + [NativeApi(EntryPoint = "vkDestroyCudaModuleNV", Convention = CallingConvention.Winapi)] + public unsafe partial void DestroyCudaModule([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator); + + /// To be documented. + [NativeApi(EntryPoint = "vkDestroyCudaModuleNV", Convention = CallingConvention.Winapi)] + public partial void DestroyCudaModule([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in AllocationCallbacks pAllocator); + + /// To be documented. + [NativeApi(EntryPoint = "vkGetCudaModuleCacheNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result GetCudaModuleCache([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] nuint* pCacheSize, [Count(Parameter = "pCacheSize")] void* pCacheData); + + /// To be documented. + [NativeApi(EntryPoint = "vkGetCudaModuleCacheNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result GetCudaModuleCache([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] nuint* pCacheSize, [Count(Parameter = "pCacheSize")] ref T0 pCacheData) where T0 : unmanaged; + + /// To be documented. + [NativeApi(EntryPoint = "vkGetCudaModuleCacheNV", Convention = CallingConvention.Winapi)] + public unsafe partial Result GetCudaModuleCache([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] ref nuint pCacheSize, [Count(Parameter = "pCacheSize")] void* pCacheData); + + /// To be documented. + [NativeApi(EntryPoint = "vkGetCudaModuleCacheNV", Convention = CallingConvention.Winapi)] + public partial Result GetCudaModuleCache([Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] ref nuint pCacheSize, [Count(Parameter = "pCacheSize")] ref T0 pCacheData) where T0 : unmanaged; + + public NVCudaKernelLaunch(INativeContext ctx) + : base(ctx) + { + } + } +} + diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunchOverloads.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunchOverloads.gen.cs new file mode 100644 index 0000000000..759f8db464 --- /dev/null +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVCudaKernelLaunchOverloads.gen.cs @@ -0,0 +1,161 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan.Extensions.NV +{ + public static class NVCudaKernelLaunchOverloads + { + /// To be documented. + public static unsafe void CmdCudaLaunchKernel(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pLaunchInfo) + { + // SpanOverloader + thisApi.CmdCudaLaunchKernel(commandBuffer, in pLaunchInfo.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, pCreateInfo, pAllocator, out pFunction.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, pCreateInfo, in pAllocator.GetPinnableReference(), pFunction); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaFunctionCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, pCreateInfo, in pAllocator.GetPinnableReference(), out pFunction.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, in pCreateInfo.GetPinnableReference(), pAllocator, pFunction); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, in pCreateInfo.GetPinnableReference(), pAllocator, out pFunction.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaFunctionNV* pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, in pCreateInfo.GetPinnableReference(), in pAllocator.GetPinnableReference(), pFunction); + } + + /// To be documented. + public static unsafe Result CreateCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pFunction) + { + // SpanOverloader + return thisApi.CreateCudaFunction(device, in pCreateInfo.GetPinnableReference(), in pAllocator.GetPinnableReference(), out pFunction.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, pCreateInfo, pAllocator, out pModule.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, pCreateInfo, in pAllocator.GetPinnableReference(), pModule); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] CudaModuleCreateInfoNV* pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, pCreateInfo, in pAllocator.GetPinnableReference(), out pModule.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, in pCreateInfo.GetPinnableReference(), pAllocator, pModule); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] AllocationCallbacks* pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, in pCreateInfo.GetPinnableReference(), pAllocator, out pModule.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] CudaModuleNV* pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, in pCreateInfo.GetPinnableReference(), in pAllocator.GetPinnableReference(), pModule); + } + + /// To be documented. + public static unsafe Result CreateCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pCreateInfo, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pModule) + { + // SpanOverloader + return thisApi.CreateCudaModule(device, in pCreateInfo.GetPinnableReference(), in pAllocator.GetPinnableReference(), out pModule.GetPinnableReference()); + } + + /// To be documented. + public static unsafe void DestroyCudaFunction(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] CudaFunctionNV function, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator) + { + // SpanOverloader + thisApi.DestroyCudaFunction(device, function, in pAllocator.GetPinnableReference()); + } + + /// To be documented. + public static unsafe void DestroyCudaModule(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAllocator) + { + // SpanOverloader + thisApi.DestroyCudaModule(device, module, in pAllocator.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result GetCudaModuleCache(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] nuint* pCacheSize, [Count(Parameter = "pCacheSize")] Span pCacheData) where T0 : unmanaged + { + // SpanOverloader + return thisApi.GetCudaModuleCache(device, module, pCacheSize, ref pCacheData.GetPinnableReference()); + } + + /// To be documented. + public static unsafe Result GetCudaModuleCache(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] Span pCacheSize, [Count(Parameter = "pCacheSize")] void* pCacheData) + { + // SpanOverloader + return thisApi.GetCudaModuleCache(device, module, ref pCacheSize.GetPinnableReference(), pCacheData); + } + + /// To be documented. + public static unsafe Result GetCudaModuleCache(this NVCudaKernelLaunch thisApi, [Count(Count = 0)] Device device, [Count(Count = 0)] CudaModuleNV module, [Count(Count = 0)] Span pCacheSize, [Count(Parameter = "pCacheSize")] Span pCacheData) where T0 : unmanaged + { + // SpanOverloader + return thisApi.GetCudaModuleCache(device, module, ref pCacheSize.GetPinnableReference(), ref pCacheData.GetPinnableReference()); + } + + } +} + diff --git a/src/Vulkan/Silk.NET.Vulkan/Enums/DebugReportObjectTypeEXT.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Enums/DebugReportObjectTypeEXT.gen.cs index b0051f8d95..62435b10f0 100644 --- a/src/Vulkan/Silk.NET.Vulkan/Enums/DebugReportObjectTypeEXT.gen.cs +++ b/src/Vulkan/Silk.NET.Vulkan/Enums/DebugReportObjectTypeEXT.gen.cs @@ -138,6 +138,12 @@ public enum DebugReportObjectTypeEXT : int [Obsolete("Deprecated in favour of \"AccelerationStructureNVExt\"")] [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_ACCELERATION_STRUCTURE_NV_EXT")] DebugReportObjectTypeAccelerationStructureNVExt = 1000165000, + [Obsolete("Deprecated in favour of \"CudaModuleNV\"")] + [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_MODULE_NV")] + DebugReportObjectTypeCudaModuleNV = 1000307000, + [Obsolete("Deprecated in favour of \"CudaFunctionNV\"")] + [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_FUNCTION_NV")] + DebugReportObjectTypeCudaFunctionNV = 1000307001, [Obsolete("Deprecated in favour of \"BufferCollectionFuchsiaExt\"")] [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA_EXT")] DebugReportObjectTypeBufferCollectionFuchsiaExt = 1000366000, @@ -225,6 +231,10 @@ public enum DebugReportObjectTypeEXT : int SamplerYcbcrConversionKhrExt = 1000156000, [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_ACCELERATION_STRUCTURE_NV_EXT")] AccelerationStructureNVExt = 1000165000, + [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_MODULE_NV")] + CudaModuleNV = 1000307000, + [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_CUDA_FUNCTION_NV")] + CudaFunctionNV = 1000307001, [NativeName("Name", "VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA_EXT")] BufferCollectionFuchsiaExt = 1000366000, } diff --git a/src/Vulkan/Silk.NET.Vulkan/Enums/ObjectType.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Enums/ObjectType.gen.cs index 83bde256c0..bf55b8cbf0 100644 --- a/src/Vulkan/Silk.NET.Vulkan/Enums/ObjectType.gen.cs +++ b/src/Vulkan/Silk.NET.Vulkan/Enums/ObjectType.gen.cs @@ -102,6 +102,10 @@ public enum ObjectType : int IndirectCommandsLayoutNV = 1000277000, [NativeName("Name", "VK_OBJECT_TYPE_PRIVATE_DATA_SLOT_EXT")] PrivateDataSlotExt = 1000295000, + [NativeName("Name", "VK_OBJECT_TYPE_CUDA_MODULE_NV")] + CudaModuleNV = 1000307000, + [NativeName("Name", "VK_OBJECT_TYPE_CUDA_FUNCTION_NV")] + CudaFunctionNV = 1000307001, [NativeName("Name", "VK_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA")] BufferCollectionFuchsia = 1000366000, [NativeName("Name", "VK_OBJECT_TYPE_MICROMAP_EXT")] diff --git a/src/Vulkan/Silk.NET.Vulkan/Enums/PhysicalDeviceSchedulingControlsFlagsARM.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Enums/PhysicalDeviceSchedulingControlsFlagsARM.gen.cs new file mode 100644 index 0000000000..6a9546b124 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Enums/PhysicalDeviceSchedulingControlsFlagsARM.gen.cs @@ -0,0 +1,24 @@ +// 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.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [Flags] + [NativeName("Name", "VkPhysicalDeviceSchedulingControlsFlagsARM")] + public enum PhysicalDeviceSchedulingControlsFlagsARM : int + { + [NativeName("Name", "")] + None = 0, + [Obsolete("Deprecated in favour of \"ShaderCoreCountArm\"")] + [NativeName("Name", "VK_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_SHADER_CORE_COUNT_ARM")] + PhysicalDeviceSchedulingControlsShaderCoreCountArm = 1, + [NativeName("Name", "VK_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_SHADER_CORE_COUNT_ARM")] + ShaderCoreCountArm = 1, + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Enums/StructureType.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Enums/StructureType.gen.cs index 71ba35f7f9..9e9d959051 100644 --- a/src/Vulkan/Silk.NET.Vulkan/Enums/StructureType.gen.cs +++ b/src/Vulkan/Silk.NET.Vulkan/Enums/StructureType.gen.cs @@ -1178,6 +1178,16 @@ public enum StructureType : int PhysicalDeviceDiagnosticsConfigFeaturesNV = 1000300000, [NativeName("Name", "VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV")] DeviceDiagnosticsConfigCreateInfoNV = 1000300001, + [NativeName("Name", "VK_STRUCTURE_TYPE_CUDA_MODULE_CREATE_INFO_NV")] + CudaModuleCreateInfoNV = 1000307000, + [NativeName("Name", "VK_STRUCTURE_TYPE_CUDA_FUNCTION_CREATE_INFO_NV")] + CudaFunctionCreateInfoNV = 1000307001, + [NativeName("Name", "VK_STRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV")] + CudaLaunchInfoNV = 1000307002, + [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_FEATURES_NV")] + PhysicalDeviceCudaKernelLaunchFeaturesNV = 1000307003, + [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_PROPERTIES_NV")] + PhysicalDeviceCudaKernelLaunchPropertiesNV = 1000307004, [NativeName("Name", "VK_STRUCTURE_TYPE_QUERY_LOW_LATENCY_SUPPORT_NV")] QueryLowLatencySupportNV = 1000310000, [NativeName("Name", "VK_STRUCTURE_TYPE_EXPORT_METAL_OBJECT_CREATE_INFO_EXT")] @@ -1500,6 +1510,12 @@ public enum StructureType : int DeviceImageMemoryRequirementsKhr = 1000413003, [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_ARM")] PhysicalDeviceShaderCorePropertiesArm = 1000415000, + [NativeName("Name", "VK_STRUCTURE_TYPE_DEVICE_QUEUE_SHADER_CORE_CONTROL_CREATE_INFO_ARM")] + DeviceQueueShaderCoreControlCreateInfoArm = 1000417000, + [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_FEATURES_ARM")] + PhysicalDeviceSchedulingControlsFeaturesArm = 1000417001, + [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCHEDULING_CONTROLS_PROPERTIES_ARM")] + PhysicalDeviceSchedulingControlsPropertiesArm = 1000417002, [NativeName("Name", "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_SLICED_VIEW_OF_3D_FEATURES_EXT")] PhysicalDeviceImageSlicedViewOf3DFeaturesExt = 1000418000, [NativeName("Name", "VK_STRUCTURE_TYPE_IMAGE_VIEW_SLICED_CREATE_INFO_EXT")] diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionCreateInfoNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionCreateInfoNV.gen.cs new file mode 100644 index 0000000000..950daa6c18 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionCreateInfoNV.gen.cs @@ -0,0 +1,85 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkCudaFunctionCreateInfoNV")] + public unsafe partial struct CudaFunctionCreateInfoNV : IChainable + { + public CudaFunctionCreateInfoNV + ( + StructureType? sType = StructureType.CudaFunctionCreateInfoNV, + void* pNext = null, + CudaModuleNV? module = null, + byte* pName = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (module is not null) + { + Module = module.Value; + } + + if (pName is not null) + { + PName = pName; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "VkCudaModuleNV")] + [NativeName("Type.Name", "VkCudaModuleNV")] + [NativeName("Name", "module")] + public CudaModuleNV Module; +/// + [NativeName("Type", "char*")] + [NativeName("Type.Name", "char")] + [NativeName("Name", "pName")] + public byte* PName; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.CudaFunctionCreateInfoNV; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionNV.gen.cs new file mode 100644 index 0000000000..61e906c550 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaFunctionNV.gen.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkCudaFunctionNV")] + public unsafe partial struct CudaFunctionNV + { + public CudaFunctionNV + ( + ulong? handle = null + ) : this() + { + if (handle is not null) + { + Handle = handle.Value; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "")] + public ulong Handle; + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/CudaLaunchInfoNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaLaunchInfoNV.gen.cs new file mode 100644 index 0000000000..f9489a15a1 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaLaunchInfoNV.gen.cs @@ -0,0 +1,195 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkCudaLaunchInfoNV")] + public unsafe partial struct CudaLaunchInfoNV : IChainable + { + public CudaLaunchInfoNV + ( + StructureType? sType = StructureType.CudaLaunchInfoNV, + void* pNext = null, + CudaFunctionNV? function = null, + uint? gridDimX = null, + uint? gridDimY = null, + uint? gridDimZ = null, + uint? blockDimX = null, + uint? blockDimY = null, + uint? blockDimZ = null, + uint? sharedMemBytes = null, + nuint? paramCount = null, + void* pParams = null, + nuint? extraCount = null, + void* pExtras = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (function is not null) + { + Function = function.Value; + } + + if (gridDimX is not null) + { + GridDimX = gridDimX.Value; + } + + if (gridDimY is not null) + { + GridDimY = gridDimY.Value; + } + + if (gridDimZ is not null) + { + GridDimZ = gridDimZ.Value; + } + + if (blockDimX is not null) + { + BlockDimX = blockDimX.Value; + } + + if (blockDimY is not null) + { + BlockDimY = blockDimY.Value; + } + + if (blockDimZ is not null) + { + BlockDimZ = blockDimZ.Value; + } + + if (sharedMemBytes is not null) + { + SharedMemBytes = sharedMemBytes.Value; + } + + if (paramCount is not null) + { + ParamCount = paramCount.Value; + } + + if (pParams is not null) + { + PParams = pParams; + } + + if (extraCount is not null) + { + ExtraCount = extraCount.Value; + } + + if (pExtras is not null) + { + PExtras = pExtras; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "VkCudaFunctionNV")] + [NativeName("Type.Name", "VkCudaFunctionNV")] + [NativeName("Name", "function")] + public CudaFunctionNV Function; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "gridDimX")] + public uint GridDimX; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "gridDimY")] + public uint GridDimY; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "gridDimZ")] + public uint GridDimZ; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "blockDimX")] + public uint BlockDimX; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "blockDimY")] + public uint BlockDimY; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "blockDimZ")] + public uint BlockDimZ; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "sharedMemBytes")] + public uint SharedMemBytes; +/// + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "paramCount")] + public nuint ParamCount; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pParams")] + public void* PParams; +/// + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "extraCount")] + public nuint ExtraCount; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pExtras")] + public void* PExtras; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.CudaLaunchInfoNV; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleCreateInfoNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleCreateInfoNV.gen.cs new file mode 100644 index 0000000000..2764945aed --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleCreateInfoNV.gen.cs @@ -0,0 +1,85 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkCudaModuleCreateInfoNV")] + public unsafe partial struct CudaModuleCreateInfoNV : IChainable + { + public CudaModuleCreateInfoNV + ( + StructureType? sType = StructureType.CudaModuleCreateInfoNV, + void* pNext = null, + nuint? dataSize = null, + void* pData = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (dataSize is not null) + { + DataSize = dataSize.Value; + } + + if (pData is not null) + { + PData = pData; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "dataSize")] + public nuint DataSize; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pData")] + public void* PData; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.CudaModuleCreateInfoNV; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleNV.gen.cs new file mode 100644 index 0000000000..452c410624 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/CudaModuleNV.gen.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkCudaModuleNV")] + public unsafe partial struct CudaModuleNV + { + public CudaModuleNV + ( + ulong? handle = null + ) : this() + { + if (handle is not null) + { + Handle = handle.Value; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "")] + public ulong Handle; + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/DeviceQueueShaderCoreControlCreateInfoARM.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/DeviceQueueShaderCoreControlCreateInfoARM.gen.cs new file mode 100644 index 0000000000..0e23af945d --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/DeviceQueueShaderCoreControlCreateInfoARM.gen.cs @@ -0,0 +1,74 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkDeviceQueueShaderCoreControlCreateInfoARM")] + public unsafe partial struct DeviceQueueShaderCoreControlCreateInfoARM : IExtendsChain, IExtendsChain + { + public DeviceQueueShaderCoreControlCreateInfoARM + ( + StructureType? sType = StructureType.DeviceQueueShaderCoreControlCreateInfoArm, + void* pNext = null, + uint? shaderCoreCount = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (shaderCoreCount is not null) + { + ShaderCoreCount = shaderCoreCount.Value; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "shaderCoreCount")] + public uint ShaderCoreCount; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.DeviceQueueShaderCoreControlCreateInfoArm; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchFeaturesNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchFeaturesNV.gen.cs new file mode 100644 index 0000000000..19252d1e29 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchFeaturesNV.gen.cs @@ -0,0 +1,74 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkPhysicalDeviceCudaKernelLaunchFeaturesNV")] + public unsafe partial struct PhysicalDeviceCudaKernelLaunchFeaturesNV : IExtendsChain, IExtendsChain, IExtendsChain + { + public PhysicalDeviceCudaKernelLaunchFeaturesNV + ( + StructureType? sType = StructureType.PhysicalDeviceCudaKernelLaunchFeaturesNV, + void* pNext = null, + Bool32? cudaKernelLaunchFeatures = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (cudaKernelLaunchFeatures is not null) + { + CudaKernelLaunchFeatures = cudaKernelLaunchFeatures.Value; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "VkBool32")] + [NativeName("Type.Name", "VkBool32")] + [NativeName("Name", "cudaKernelLaunchFeatures")] + public Bool32 CudaKernelLaunchFeatures; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.PhysicalDeviceCudaKernelLaunchFeaturesNV; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchPropertiesNV.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchPropertiesNV.gen.cs new file mode 100644 index 0000000000..59124d4b39 --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceCudaKernelLaunchPropertiesNV.gen.cs @@ -0,0 +1,85 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkPhysicalDeviceCudaKernelLaunchPropertiesNV")] + public unsafe partial struct PhysicalDeviceCudaKernelLaunchPropertiesNV : IExtendsChain, IExtendsChain + { + public PhysicalDeviceCudaKernelLaunchPropertiesNV + ( + StructureType? sType = StructureType.PhysicalDeviceCudaKernelLaunchPropertiesNV, + void* pNext = null, + uint? computeCapabilityMinor = null, + uint? computeCapabilityMajor = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (computeCapabilityMinor is not null) + { + ComputeCapabilityMinor = computeCapabilityMinor.Value; + } + + if (computeCapabilityMajor is not null) + { + ComputeCapabilityMajor = computeCapabilityMajor.Value; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "computeCapabilityMinor")] + public uint ComputeCapabilityMinor; +/// + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "computeCapabilityMajor")] + public uint ComputeCapabilityMajor; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.PhysicalDeviceCudaKernelLaunchPropertiesNV; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs new file mode 100644 index 0000000000..d8b4045bfd --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsFeaturesARM.gen.cs @@ -0,0 +1,74 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkPhysicalDeviceSchedulingControlsFeaturesARM")] + public unsafe partial struct PhysicalDeviceSchedulingControlsFeaturesARM : IExtendsChain, IExtendsChain, IExtendsChain + { + public PhysicalDeviceSchedulingControlsFeaturesARM + ( + StructureType? sType = StructureType.PhysicalDeviceSchedulingControlsFeaturesArm, + void* pNext = null, + Bool32? schedulingControls = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (schedulingControls is not null) + { + SchedulingControls = schedulingControls.Value; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "VkBool32")] + [NativeName("Type.Name", "VkBool32")] + [NativeName("Name", "schedulingControls")] + public Bool32 SchedulingControls; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.PhysicalDeviceSchedulingControlsFeaturesArm; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +} diff --git a/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsPropertiesARM.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsPropertiesARM.gen.cs new file mode 100644 index 0000000000..86757b847d --- /dev/null +++ b/src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceSchedulingControlsPropertiesARM.gen.cs @@ -0,0 +1,74 @@ +// 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.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.Vulkan +{ + [NativeName("Name", "VkPhysicalDeviceSchedulingControlsPropertiesARM")] + public unsafe partial struct PhysicalDeviceSchedulingControlsPropertiesARM : IExtendsChain, IExtendsChain + { + public PhysicalDeviceSchedulingControlsPropertiesARM + ( + StructureType? sType = StructureType.PhysicalDeviceSchedulingControlsPropertiesArm, + void* pNext = null, + PhysicalDeviceSchedulingControlsFlagsARM? schedulingControlsFlags = null + ) : this() + { + if (sType is not null) + { + SType = sType.Value; + } + + if (pNext is not null) + { + PNext = pNext; + } + + if (schedulingControlsFlags is not null) + { + SchedulingControlsFlags = schedulingControlsFlags.Value; + } + } + +/// + [NativeName("Type", "VkStructureType")] + [NativeName("Type.Name", "VkStructureType")] + [NativeName("Name", "sType")] + public StructureType SType; +/// + [NativeName("Type", "void*")] + [NativeName("Type.Name", "void")] + [NativeName("Name", "pNext")] + public void* PNext; +/// + [NativeName("Type", "VkPhysicalDeviceSchedulingControlsFlagsARM")] + [NativeName("Type.Name", "VkPhysicalDeviceSchedulingControlsFlagsARM")] + [NativeName("Name", "schedulingControlsFlags")] + public PhysicalDeviceSchedulingControlsFlagsARM SchedulingControlsFlags; + + /// + StructureType IStructuredType.StructureType() + { + return SType = StructureType.PhysicalDeviceSchedulingControlsPropertiesArm; + } + + /// + unsafe BaseInStructure* IChainable.PNext + { + get => (BaseInStructure*) PNext; + set => PNext = value; + } + } +}