|
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
| 2 | +// The .NET Foundation licenses this file to you under the MIT license. |
| 3 | +using System; |
| 4 | +using System.Runtime.InteropServices; |
| 5 | +using System.Runtime.CompilerServices; |
| 6 | +using System.Text; |
| 7 | +using Silk.NET.Core; |
| 8 | +using Silk.NET.Core.Native; |
| 9 | +using Silk.NET.Core.Attributes; |
| 10 | +using Silk.NET.Core.Contexts; |
| 11 | +using Silk.NET.Core.Loader; |
| 12 | +using Silk.NET.OpenCL; |
| 13 | +using Extension = Silk.NET.Core.Attributes.ExtensionAttribute; |
| 14 | + |
| 15 | +#pragma warning disable 1591 |
| 16 | + |
| 17 | +namespace Silk.NET.OpenCL.Extensions.LOADER |
| 18 | +{ |
| 19 | + [Extension("LOADER_info")] |
| 20 | + public unsafe partial class LoaderInfo : NativeExtension<CL> |
| 21 | + { |
| 22 | + public const string ExtensionName = "LOADER_info"; |
| 23 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 24 | + public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret); |
| 25 | + |
| 26 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 27 | + public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret); |
| 28 | + |
| 29 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 30 | + public unsafe partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged; |
| 31 | + |
| 32 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 33 | + public partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] IcdlInfo param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret) where T0 : unmanaged; |
| 34 | + |
| 35 | + [Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", false)] |
| 36 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 37 | + public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret); |
| 38 | + |
| 39 | + [Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", false)] |
| 40 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 41 | + public unsafe partial int GetIcdloaderInfoOclicd([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] void* param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret); |
| 42 | + |
| 43 | + [Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", false)] |
| 44 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 45 | + public unsafe partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] nuint* param_value_size_ret) where T0 : unmanaged; |
| 46 | + |
| 47 | + [Obsolete("The \"ungrouped\" enums (LOADER) are deprecated in favour of the \"grouped\" enums (IcdlInfo). Not only is this akin to how the original specification represents enums, it also ensures that the size of the enum is correct which is a guarantee the \"ungrouped\" enums do not provide. As such, we have made every attempt to prevent functions known to use these ungrouped enums problematically from compiling; but regardless of whether usage of these deprecated enums compiles please use the other enums to ensure that all functions will work as intended. ", false)] |
| 48 | + [NativeApi(EntryPoint = "clGetICDLoaderInfoOCLICD", Convention = CallingConvention.Winapi)] |
| 49 | + public partial int GetIcdloaderInfoOclicd<T0>([Flow(FlowDirection.In)] LOADER param_name, [Flow(FlowDirection.In)] nuint param_value_size, [Flow(FlowDirection.Out)] out T0 param_value, [Flow(FlowDirection.Out)] out nuint param_value_size_ret) where T0 : unmanaged; |
| 50 | + |
| 51 | + public LoaderInfo(INativeContext ctx) |
| 52 | + : base(ctx) |
| 53 | + { |
| 54 | + } |
| 55 | + } |
| 56 | +} |
| 57 | + |
0 commit comments