From 7c795eeb63b01b1095e55a535f8207d4972ee95d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 12 Aug 2009 10:13:51 +0000 Subject: [PATCH] Regenerated OpenCL bindings with the compilation fixes for gmcs 2.0. --- Source/OpenTK/Compute/CL10/CL.cs | 20550 +++++++++++++--------- Source/OpenTK/Compute/CL10/Core.cs | 476 +- Source/OpenTK/Compute/CL10/Delegates.cs | 474 +- Source/OpenTK/Compute/CL10/Enums.cs | 1404 +- 4 files changed, 13129 insertions(+), 9775 deletions(-) diff --git a/Source/OpenTK/Compute/CL10/CL.cs b/Source/OpenTK/Compute/CL10/CL.cs index f44dbfdf..a3b31f88 100644 --- a/Source/OpenTK/Compute/CL10/CL.cs +++ b/Source/OpenTK/Compute/CL10/CL.cs @@ -1,8598 +1,11952 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Compute.CL10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - #pragma warning disable 1572 - #pragma warning disable 1573 - - static partial class CL - { - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [In, Out] ref T5 user_data) - where T5 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [In, Out] T5[,,] user_data) - where T5 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [In, Out] T5[,] user_data) - where T5 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [In, Out] T5[] user_data) - where T5 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data) - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [In, Out] ref T5 user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [In, Out] T5[,,] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [In, Out] T5[,] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [In, Out] T5[] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, IntPtr user_data) - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [In, Out] ref T5 user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [In, Out] T5[,,] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [In, Out] T5[,] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [In, Out] T5[] user_data) - where T5 : struct - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBuildProgram")] - public static - int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, IntPtr user_data) - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - { - return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] ref T3 host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] ref T3 host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] ref T3 host_ptr, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,,] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,,] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,,] host_ptr, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[,] host_ptr, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[] host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [In, Out] T3[] host_ptr, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateBuffer")] - public static - IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateCommandQueue")] - public static - unsafe IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateCommandQueue")] - public static - IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateCommandQueue")] - public static - IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [In, Out] ref T4 user_data, [Out] int* errcode_ret) - where T4 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [In, Out] T4[,,] user_data, [Out] int* errcode_ret) - where T4 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [In, Out] T4[,] user_data, [Out] int* errcode_ret) - where T4 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [In, Out] T4[] user_data, [Out] int* errcode_ret) - where T4 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [Out] int* errcode_ret) - { - return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [In, Out] ref T4 user_data, [Out] int[] errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (IntPtr* devices_ptr = devices) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [In, Out] T4[,,] user_data, [Out] int[] errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (IntPtr* devices_ptr = devices) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [In, Out] T4[,] user_data, [Out] int[] errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (IntPtr* devices_ptr = devices) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [In, Out] T4[] user_data, [Out] int[] errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (IntPtr* devices_ptr = devices) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, IntPtr user_data, [Out] int[] errcode_ret) - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (IntPtr* devices_ptr = devices) - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [In, Out] ref T4 user_data, [Out] out int errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (IntPtr* devices_ptr = &devices) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [In, Out] T4[,,] user_data, [Out] out int errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (IntPtr* devices_ptr = &devices) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [In, Out] T4[,] user_data, [Out] out int errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (IntPtr* devices_ptr = &devices) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [In, Out] T4[] user_data, [Out] out int errcode_ret) - where T4 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (IntPtr* devices_ptr = &devices) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContext")] - public static - IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, IntPtr user_data, [Out] out int errcode_ret) - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (IntPtr* devices_ptr = &devices) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] ref T3 user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,,] user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,] user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[] user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - where T3 : struct - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - finally - { - user_data_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] ref T3 user_data, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,,] user_data, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,] user_data, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[] user_data, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (ContextProperties* properties_ptr = properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] ref T3 user_data, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,,] user_data, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[,] user_data, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [In, Out] T3[] user_data, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - where T3 : struct - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - user_data_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateContextFromType")] - public static - IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (ContextProperties* properties_ptr = &properties) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] ref T6 host_ptr, [Out] int* errcode_ret) - where T6 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,,] host_ptr, [Out] int* errcode_ret) - where T6 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,] host_ptr, [Out] int* errcode_ret) - where T6 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[] host_ptr, [Out] int* errcode_ret) - where T6 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [Out] int* errcode_ret) - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] ref T6 host_ptr, [Out] int[] errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,,] host_ptr, [Out] int[] errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,] host_ptr, [Out] int[] errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[] host_ptr, [Out] int[] errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [Out] int[] errcode_ret) - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] ref T6 host_ptr, [Out] out int errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,,] host_ptr, [Out] out int errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[,] host_ptr, [Out] out int errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [In, Out] T6[] host_ptr, [Out] out int errcode_ret) - where T6 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage2D")] - public static - IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [Out] out int errcode_ret) - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] ref T8 host_ptr, [Out] int* errcode_ret) - where T8 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,,] host_ptr, [Out] int* errcode_ret) - where T8 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,] host_ptr, [Out] int* errcode_ret) - where T8 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[] host_ptr, [Out] int* errcode_ret) - where T8 : struct - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); - } - finally - { - host_ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [Out] int* errcode_ret) - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] ref T8 host_ptr, [Out] int[] errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,,] host_ptr, [Out] int[] errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,] host_ptr, [Out] int[] errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[] host_ptr, [Out] int[] errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [Out] int[] errcode_ret) - { - unsafe - { - fixed (ImageFormat* image_format_ptr = image_format) - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] ref T8 host_ptr, [Out] out int errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,,] host_ptr, [Out] out int errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[,] host_ptr, [Out] out int errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [In, Out] T8[] host_ptr, [Out] out int errcode_ret) - where T8 : struct - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); - try - { - IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - finally - { - host_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateImage3D")] - public static - IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [Out] out int errcode_ret) - { - unsafe - { - fixed (ImageFormat* image_format_ptr = &image_format) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernel")] - public static - unsafe IntPtr CreateKernel(IntPtr program, String kernel_name, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernel")] - public static - IntPtr CreateKernel(IntPtr program, String kernel_name, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernel")] - public static - IntPtr CreateKernel(IntPtr program, String kernel_name, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernelsInProgram")] - public static - unsafe int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [Out] Int32* num_kernels_ret) - { - return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels, (uint*)num_kernels_ret); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernelsInProgram")] - public static - unsafe int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [Out] uint* num_kernels_ret) - { - return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels, (uint*)num_kernels_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernelsInProgram")] - public static - int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr[] kernels, [Out] uint[] num_kernels_ret) - { - unsafe - { - fixed (IntPtr* kernels_ptr = kernels) - fixed (uint* num_kernels_ret_ptr = num_kernels_ret) - { - return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateKernelsInProgram")] - public static - int CreateKernelsInProgram(IntPtr program, uint num_kernels, ref IntPtr kernels, [Out] out uint num_kernels_ret) - { - unsafe - { - fixed (IntPtr* kernels_ptr = &kernels) - fixed (uint* num_kernels_ret_ptr = &num_kernels_ret) - { - int retval = Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); - num_kernels_ret = *num_kernels_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithBinary")] - public static - unsafe IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list, (IntPtr*)lengths, (byte)@char, (int*)binary_status, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithBinary")] - public static - IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr[] device_list, IntPtr[] lengths, byte @char, int[] binary_status, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (IntPtr* device_list_ptr = device_list) - fixed (IntPtr* lengths_ptr = lengths) - fixed (int* binary_status_ptr = binary_status) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithBinary")] - public static - IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, ref IntPtr device_list, ref IntPtr lengths, byte @char, ref int binary_status, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (IntPtr* device_list_ptr = &device_list) - fixed (IntPtr* lengths_ptr = &lengths) - fixed (int* binary_status_ptr = &binary_status) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithSource")] - public static - unsafe IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret) - { - return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithSource")] - public static - IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr[] lengths, [Out] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) - { - unsafe - { - fixed (IntPtr* lengths_ptr = lengths) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateProgramWithSource")] - public static - IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, ref IntPtr lengths, [Out] out OpenTK.Compute.CL10.ErrorCode errcode_ret) - { - unsafe - { - fixed (IntPtr* lengths_ptr = &lengths) - fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateSampler")] - public static - unsafe IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [Out] int* errcode_ret) - { - return Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateSampler")] - public static - IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [Out] int[] errcode_ret) - { - unsafe - { - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCreateSampler")] - public static - IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [Out] out int errcode_ret) - { - unsafe - { - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueBarrier")] - public static - int EnqueueBarrier(IntPtr command_queue) - { - return Delegates.clEnqueueBarrier((IntPtr)command_queue); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBuffer")] - public static - unsafe int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBuffer")] - public static - int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBuffer")] - public static - int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBufferToImage")] - public static - unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBufferToImage")] - public static - unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr*[] dst_origin, IntPtr*[] region, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - fixed (IntPtr** dst_origin_ptr = dst_origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyBufferToImage")] - public static - unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, ref IntPtr* dst_origin, ref IntPtr* region, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - fixed (IntPtr** dst_origin_ptr = &dst_origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImage")] - public static - unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImage")] - public static - unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr*[] src_origin, IntPtr*[] dst_origin, IntPtr*[] region, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - fixed (IntPtr** src_origin_ptr = src_origin) - fixed (IntPtr** dst_origin_ptr = dst_origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImage")] - public static - unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, ref IntPtr* src_origin, ref IntPtr* dst_origin, ref IntPtr* region, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - fixed (IntPtr** src_origin_ptr = &src_origin) - fixed (IntPtr** dst_origin_ptr = &dst_origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImageToBuffer")] - public static - unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin, (IntPtr**)region, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImageToBuffer")] - public static - unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr*[] src_origin, IntPtr*[] region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - fixed (IntPtr** src_origin_ptr = src_origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueCopyImageToBuffer")] - public static - unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, ref IntPtr* src_origin, ref IntPtr* region, IntPtr dst_offset, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - fixed (IntPtr** src_origin_ptr = &src_origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapBuffer")] - public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret) - { - return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapBuffer")] - public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [Out] int[] errcode_ret) - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapBuffer")] - public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [Out] out int errcode_ret) - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapImage")] - public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret) - { - return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapImage")] - public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [Out] int[] errcode_ret) - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* image_row_pitch_ptr = image_row_pitch) - fixed (IntPtr* image_slice_pitch_ptr = image_slice_pitch) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - fixed (int* errcode_ret_ptr = errcode_ret) - { - return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMapImage")] - public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [Out] out int errcode_ret) - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* image_row_pitch_ptr = &image_row_pitch) - fixed (IntPtr* image_slice_pitch_ptr = &image_slice_pitch) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - fixed (int* errcode_ret_ptr = &errcode_ret) - { - IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); - errcode_ret = *errcode_ret_ptr; - return retval; - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMarker")] - public static - unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event) - { - return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMarker")] - public static - int EnqueueMarker(IntPtr command_queue, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueMarker")] - public static - int EnqueueMarker(IntPtr command_queue, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] ref T2 args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - where T6 : struct - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] ref T2 args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] ref T2 args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,,] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - where T6 : struct - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,,] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,,] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - where T6 : struct - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[,] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - where T6 : struct - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [In, Out] T2[] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_ptr.Free(); - args_mem_loc_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] ref T6 args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T6 : struct - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T6 : struct - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T6 : struct - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [In, Out] T6[] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T6 : struct - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] ref T6 args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [In, Out] T6[] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* mem_list_ptr = mem_list) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] ref T6 args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [In, Out] T6[] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T6 : struct - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - args_mem_loc_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNativeKernel")] - public static - int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* mem_list_ptr = &mem_list) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNDRangeKernel")] - public static - unsafe int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset, (IntPtr*)global_work_size, (IntPtr*)local_work_size, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNDRangeKernel")] - public static - int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr[] global_work_offset, IntPtr[] global_work_size, IntPtr[] local_work_size, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* global_work_offset_ptr = global_work_offset) - fixed (IntPtr* global_work_size_ptr = global_work_size) - fixed (IntPtr* local_work_size_ptr = local_work_size) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueNDRangeKernel")] - public static - int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, ref IntPtr global_work_offset, ref IntPtr global_work_size, ref IntPtr local_work_size, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* global_work_offset_ptr = &global_work_offset) - fixed (IntPtr* global_work_size_ptr = &global_work_size) - fixed (IntPtr* local_work_size_ptr = &local_work_size) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadBuffer")] - public static - int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueReadImage")] - public static - unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueTask")] - public static - unsafe int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueTask")] - public static - int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueTask")] - public static - int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] ref T2 mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] ref T2 mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] ref T2 mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,,] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,,] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,,] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[,] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T2 : struct - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [In, Out] T2[] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T2 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - mapped_ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueUnmapMemObject")] - public static - int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWaitForEvents")] - public static - unsafe int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list) - { - return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWaitForEvents")] - public static - int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr[] event_list) - { - unsafe - { - fixed (IntPtr* event_list_ptr = event_list) - { - return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWaitForEvents")] - public static - int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, ref IntPtr event_list) - { - unsafe - { - fixed (IntPtr* event_list_ptr = &event_list) - { - return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] ref T5 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T5 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [In, Out] T5[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T5 : struct - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteBuffer")] - public static - int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - unsafe - { - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - where T7 : struct - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - finally - { - ptr_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) - { - fixed (IntPtr** origin_ptr = origin) - fixed (IntPtr** region_ptr = region) - fixed (IntPtr* event_wait_list_ptr = event_wait_list) - fixed (IntPtr* @event_ptr = @event) - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] ref T7 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [In, Out] T7[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - where T7 : struct - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - finally - { - ptr_ptr.Free(); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnqueueWriteImage")] - public static - unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) - { - fixed (IntPtr** origin_ptr = &origin) - fixed (IntPtr** region_ptr = ®ion) - fixed (IntPtr* event_wait_list_ptr = &event_wait_list) - fixed (IntPtr* @event_ptr = &@event) - { - return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); - } - } - - - /// - /// Block until all GL execution is complete - /// - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFinish")] - public static - int Finish(IntPtr command_queue) - { - return Delegates.clFinish((IntPtr)command_queue); - } - - - /// - /// Force execution of GL commands in finite time - /// - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFlush")] - public static - int Flush(IntPtr command_queue) - { - return Delegates.clFlush((IntPtr)command_queue); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetCommandQueueInfo")] - public static - int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetContextInfo")] - public static - int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceIDs")] - public static - unsafe int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, Int32* num_devices) - { - return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices, (uint*)num_devices); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceIDs")] - public static - unsafe int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices) - { - return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices, (uint*)num_devices); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceIDs")] - public static - int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr[] devices, uint[] num_devices) - { - unsafe - { - fixed (IntPtr* devices_ptr = devices) - fixed (uint* num_devices_ptr = num_devices) - { - return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceIDs")] - public static - int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, ref IntPtr devices, ref uint num_devices) - { - unsafe - { - fixed (IntPtr* devices_ptr = &devices) - fixed (uint* num_devices_ptr = &num_devices) - { - return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetDeviceInfo")] - public static - int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventInfo")] - public static - int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetEventProfilingInfo")] - public static - int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetImageInfo")] - public static - int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelInfo")] - public static - int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetKernelWorkGroupInfo")] - public static - int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetMemObjectInfo")] - public static - int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformIDs")] - public static - unsafe int GetPlatformID(uint num_entries, IntPtr* platforms, Int32* num_platforms) - { - return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms, (uint*)num_platforms); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformIDs")] - public static - unsafe int GetPlatformID(uint num_entries, IntPtr* platforms, uint* num_platforms) - { - return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms, (uint*)num_platforms); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformIDs")] - public static - int GetPlatformID(uint num_entries, IntPtr[] platforms, uint[] num_platforms) - { - unsafe - { - fixed (IntPtr* platforms_ptr = platforms) - fixed (uint* num_platforms_ptr = num_platforms) - { - return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformIDs")] - public static - int GetPlatformID(uint num_entries, ref IntPtr platforms, ref uint num_platforms) - { - unsafe - { - fixed (IntPtr* platforms_ptr = &platforms) - fixed (uint* num_platforms_ptr = &num_platforms) - { - return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetPlatformInfo")] - public static - int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] ref T4 param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[,] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] IntPtr* param_value_size_ret) - where T4 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] IntPtr[] param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [In, Out] T4[] param_value, [Out] out IntPtr param_value_size_ret) - where T4 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramBuildInfo")] - public static - int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetProgramInfo")] - public static - int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] ref T3 param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[,] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr* param_value_size_ret) - where T3 : struct - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); - } - finally - { - param_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] IntPtr[] param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [In, Out] T3[] param_value, [Out] out IntPtr param_value_size_ret) - where T3 : struct - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); - try - { - int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - finally - { - param_value_ptr.Free(); - } - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret) - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr[] param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) - { - return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSamplerInfo")] - public static - int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] out IntPtr param_value_size_ret) - { - unsafe - { - fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) - { - int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); - param_value_size_ret = *param_value_size_ret_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSupportedImageFormats")] - public static - unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, Int32* num_image_formats) - { - return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats, (uint*)num_image_formats); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSupportedImageFormats")] - public static - unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats) - { - return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats, (uint*)num_image_formats); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSupportedImageFormats")] - public static - int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat[] image_formats, uint[] num_image_formats) - { - unsafe - { - fixed (ImageFormat* image_formats_ptr = image_formats) - fixed (uint* num_image_formats_ptr = num_image_formats) - { - return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetSupportedImageFormats")] - public static - int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ref ImageFormat image_formats, ref uint num_image_formats) - { - unsafe - { - fixed (ImageFormat* image_formats_ptr = &image_formats) - fixed (uint* num_image_formats_ptr = &num_image_formats) - { - return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseCommandQueue")] - public static - int ReleaseCommandQueue(IntPtr command_queue) - { - return Delegates.clReleaseCommandQueue((IntPtr)command_queue); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseContext")] - public static - int ReleaseContext(IntPtr context) - { - return Delegates.clReleaseContext((IntPtr)context); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseEvent")] - public static - int ReleaseEvent(IntPtr @event) - { - return Delegates.clReleaseEvent((IntPtr)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseKernel")] - public static - int ReleaseKernel(IntPtr kernel) - { - return Delegates.clReleaseKernel((IntPtr)kernel); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseMemObject")] - public static - int ReleaseMemObject(IntPtr memobj) - { - return Delegates.clReleaseMemObject((IntPtr)memobj); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseProgram")] - public static - int ReleaseProgram(IntPtr program) - { - return Delegates.clReleaseProgram((IntPtr)program); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReleaseSampler")] - public static - int ReleaseSampler(IntPtr sampler) - { - return Delegates.clReleaseSampler((IntPtr)sampler); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainCommandQueue")] - public static - int RetainCommandQueue(IntPtr command_queue) - { - return Delegates.clRetainCommandQueue((IntPtr)command_queue); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainContext")] - public static - int RetainContext(IntPtr context) - { - return Delegates.clRetainContext((IntPtr)context); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainEvent")] - public static - int RetainEvent(IntPtr @event) - { - return Delegates.clRetainEvent((IntPtr)@event); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainKernel")] - public static - int RetainKernel(IntPtr kernel) - { - return Delegates.clRetainKernel((IntPtr)kernel); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainMemObject")] - public static - int RetainMemObject(IntPtr memobj) - { - return Delegates.clRetainMemObject((IntPtr)memobj); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainProgram")] - public static - int RetainProgram(IntPtr program) - { - return Delegates.clRetainProgram((IntPtr)program); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRetainSampler")] - public static - int RetainSampler(IntPtr sampler) - { - return Delegates.clRetainSampler((IntPtr)sampler); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetCommandQueueProperty")] - public static - unsafe int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties) - { - return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetCommandQueueProperty")] - public static - int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags[] old_properties) - { - unsafe - { - fixed (CommandQueueFlags* old_properties_ptr = old_properties) - { - return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetCommandQueueProperty")] - public static - int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, ref CommandQueueFlags old_properties) - { - unsafe - { - fixed (CommandQueueFlags* old_properties_ptr = &old_properties) - { - return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetKernelArg")] - public static - int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [In, Out] ref T3 arg_value) - where T3 : struct - { - GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); - try - { - return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); - } - finally - { - arg_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetKernelArg")] - public static - int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [In, Out] T3[,,] arg_value) - where T3 : struct - { - GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); - try - { - return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); - } - finally - { - arg_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetKernelArg")] - public static - int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [In, Out] T3[,] arg_value) - where T3 : struct - { - GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); - try - { - return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); - } - finally - { - arg_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetKernelArg")] - public static - int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [In, Out] T3[] arg_value) - where T3 : struct - { - GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); - try - { - return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); - } - finally - { - arg_value_ptr.Free(); - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSetKernelArg")] - public static - int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value) - { - return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glUnloadCompiler")] - public static - int UnloadCompiler() - { - return Delegates.clUnloadCompiler(); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glWaitForEvents")] - public static - unsafe int WaitForEvents(uint num_events, IntPtr* event_list) - { - return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list); - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glWaitForEvents")] - public static - int WaitForEvents(uint num_events, IntPtr[] event_list) - { - unsafe - { - fixed (IntPtr* event_list_ptr = event_list) - { - return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); - } - } - } - - [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glWaitForEvents")] - public static - int WaitForEvents(uint num_events, ref IntPtr event_list) - { - unsafe - { - fixed (IntPtr* event_list_ptr = &event_list) - { - return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); - } - } - } - - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Compute.CL10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + #pragma warning disable 1572 + #pragma warning disable 1573 + + static partial class CL + { + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, Int32 num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, Int32 num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, Int32 num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, Int32 num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, Int32 num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, Int32 num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, IntPtr[] device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T5 user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[,] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, [InAttribute, OutAttribute] T5[] user_data) + where T5 : struct + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject()); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clBuildProgram")] + public static + int BuildProgram(IntPtr program, uint num_devices, ref IntPtr device_list, String options, IntPtr pfn_notify, IntPtr user_data) + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + { + return Delegates.clBuildProgram((IntPtr)program, (uint)num_devices, (IntPtr*)device_list_ptr, (String)options, (IntPtr)pfn_notify, (IntPtr)user_data); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] ref T3 host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] ref T3 host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] ref T3 host_ptr, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,,] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,,] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,,] host_ptr, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[,] host_ptr, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[] host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, [InAttribute, OutAttribute] T3[] host_ptr, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateBuffer")] + public static + IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateBuffer((IntPtr)context, (MemFlags)flags, (IntPtr)size, (IntPtr)host_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateCommandQueue")] + public static + unsafe IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateCommandQueue")] + public static + IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateCommandQueue")] + public static + IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateCommandQueue((IntPtr)context, (IntPtr)device, (CommandQueueFlags)properties, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, Int32 num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, Int32 num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, Int32 num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, Int32 num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, Int32 num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int* errcode_ret) + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] int* errcode_ret) + where T4 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int* errcode_ret) + { + return Delegates.clCreateContext((ContextProperties*)properties, (uint)num_devices, (IntPtr*)devices, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, Int32 num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, Int32 num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, Int32 num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, Int32 num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, Int32 num_devices, IntPtr[] devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int[] errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] int[] errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ContextProperties[] properties, uint num_devices, IntPtr[] devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int[] errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (IntPtr* devices_ptr = devices) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, Int32 num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, Int32 num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, Int32 num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, Int32 num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, Int32 num_devices, ref IntPtr devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] out int errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T4 user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,,] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[,] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, [InAttribute, OutAttribute] T4[] user_data, [OutAttribute] out int errcode_ret) + where T4 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContext")] + public static + IntPtr CreateContext(ref ContextProperties properties, uint num_devices, ref IntPtr devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] out int errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (IntPtr* devices_ptr = &devices) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateContext((ContextProperties*)properties_ptr, (uint)num_devices, (IntPtr*)devices_ptr, (IntPtr)pfn_notify, (IntPtr)user_data, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T3 user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,,] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + where T3 : struct + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + finally + { + user_data_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateContextFromType((ContextProperties*)properties, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T3 user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,,] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[] user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ContextProperties[] properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] ref T3 user_data, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,,] user_data, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[,] user_data, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, [InAttribute, OutAttribute] T3[] user_data, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + where T3 : struct + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + GCHandle user_data_ptr = GCHandle.Alloc(user_data, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data_ptr.AddrOfPinnedObject(), (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + user_data_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateContextFromType")] + public static + IntPtr CreateContextFromType(ref ContextProperties properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (ContextProperties* properties_ptr = &properties) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateContextFromType((ContextProperties*)properties_ptr, (DeviceTypeFlags)device_type, (IntPtr)pfn_notify, (IntPtr)user_data, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] ref T6 host_ptr, [OutAttribute] int* errcode_ret) + where T6 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,,] host_ptr, [OutAttribute] int* errcode_ret) + where T6 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,] host_ptr, [OutAttribute] int* errcode_ret) + where T6 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[] host_ptr, [OutAttribute] int* errcode_ret) + where T6 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret) + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] ref T6 host_ptr, [OutAttribute] int[] errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,,] host_ptr, [OutAttribute] int[] errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,] host_ptr, [OutAttribute] int[] errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[] host_ptr, [OutAttribute] int[] errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [OutAttribute] int[] errcode_ret) + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] ref T6 host_ptr, [OutAttribute] out int errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,,] host_ptr, [OutAttribute] out int errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[,] host_ptr, [OutAttribute] out int errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, [InAttribute, OutAttribute] T6[] host_ptr, [OutAttribute] out int errcode_ret) + where T6 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage2D")] + public static + IntPtr CreateImage2D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [OutAttribute] out int errcode_ret) + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateImage2D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_row_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] ref T8 host_ptr, [OutAttribute] int* errcode_ret) + where T8 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,,] host_ptr, [OutAttribute] int* errcode_ret) + where T8 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,] host_ptr, [OutAttribute] int* errcode_ret) + where T8 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[] host_ptr, [OutAttribute] int* errcode_ret) + where T8 : struct + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret); + } + finally + { + host_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret) + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] ref T8 host_ptr, [OutAttribute] int[] errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,,] host_ptr, [OutAttribute] int[] errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,] host_ptr, [OutAttribute] int[] errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[] host_ptr, [OutAttribute] int[] errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat[] image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [OutAttribute] int[] errcode_ret) + { + unsafe + { + fixed (ImageFormat* image_format_ptr = image_format) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] ref T8 host_ptr, [OutAttribute] out int errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,,] host_ptr, [OutAttribute] out int errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[,] host_ptr, [OutAttribute] out int errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, [InAttribute, OutAttribute] T8[] host_ptr, [OutAttribute] out int errcode_ret) + where T8 : struct + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + GCHandle host_ptr_ptr = GCHandle.Alloc(host_ptr, GCHandleType.Pinned); + try + { + IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr_ptr.AddrOfPinnedObject(), (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + finally + { + host_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateImage3D")] + public static + IntPtr CreateImage3D(IntPtr context, MemFlags flags, ref ImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [OutAttribute] out int errcode_ret) + { + unsafe + { + fixed (ImageFormat* image_format_ptr = &image_format) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateImage3D((IntPtr)context, (MemFlags)flags, (ImageFormat*)image_format_ptr, (IntPtr)image_width, (IntPtr)image_height, (IntPtr)image_depth, (IntPtr)image_row_pitch, (IntPtr)image_slice_pitch, (IntPtr)host_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernel")] + public static + unsafe IntPtr CreateKernel(IntPtr program, String kernel_name, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernel")] + public static + IntPtr CreateKernel(IntPtr program, String kernel_name, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernel")] + public static + IntPtr CreateKernel(IntPtr program, String kernel_name, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateKernel((IntPtr)program, (String)kernel_name, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + unsafe int CreateKernelsInProgram(IntPtr program, Int32 num_kernels, IntPtr* kernels, [OutAttribute] Int32* num_kernels_ret) + { + return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels, (uint*)num_kernels_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + int CreateKernelsInProgram(IntPtr program, Int32 num_kernels, IntPtr[] kernels, [OutAttribute] Int32[] num_kernels_ret) + { + unsafe + { + fixed (IntPtr* kernels_ptr = kernels) + fixed (Int32* num_kernels_ret_ptr = num_kernels_ret) + { + return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + int CreateKernelsInProgram(IntPtr program, Int32 num_kernels, ref IntPtr kernels, [OutAttribute] out Int32 num_kernels_ret) + { + unsafe + { + fixed (IntPtr* kernels_ptr = &kernels) + fixed (Int32* num_kernels_ret_ptr = &num_kernels_ret) + { + int retval = Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); + num_kernels_ret = *num_kernels_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + unsafe int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [OutAttribute] uint* num_kernels_ret) + { + return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels, (uint*)num_kernels_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr[] kernels, [OutAttribute] uint[] num_kernels_ret) + { + unsafe + { + fixed (IntPtr* kernels_ptr = kernels) + fixed (uint* num_kernels_ret_ptr = num_kernels_ret) + { + return Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateKernelsInProgram")] + public static + int CreateKernelsInProgram(IntPtr program, uint num_kernels, ref IntPtr kernels, [OutAttribute] out uint num_kernels_ret) + { + unsafe + { + fixed (IntPtr* kernels_ptr = &kernels) + fixed (uint* num_kernels_ret_ptr = &num_kernels_ret) + { + int retval = Delegates.clCreateKernelsInProgram((IntPtr)program, (uint)num_kernels, (IntPtr*)kernels_ptr, (uint*)num_kernels_ret_ptr); + num_kernels_ret = *num_kernels_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + unsafe IntPtr CreateProgramWithBinary(IntPtr context, Int32 num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list, (IntPtr*)lengths, (byte)@char, (int*)binary_status, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + IntPtr CreateProgramWithBinary(IntPtr context, Int32 num_devices, IntPtr[] device_list, IntPtr[] lengths, byte @char, int[] binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + fixed (IntPtr* lengths_ptr = lengths) + fixed (int* binary_status_ptr = binary_status) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + IntPtr CreateProgramWithBinary(IntPtr context, Int32 num_devices, ref IntPtr device_list, ref IntPtr lengths, byte @char, ref int binary_status, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + fixed (IntPtr* lengths_ptr = &lengths) + fixed (int* binary_status_ptr = &binary_status) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + unsafe IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list, (IntPtr*)lengths, (byte)@char, (int*)binary_status, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr[] device_list, IntPtr[] lengths, byte @char, int[] binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (IntPtr* device_list_ptr = device_list) + fixed (IntPtr* lengths_ptr = lengths) + fixed (int* binary_status_ptr = binary_status) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithBinary")] + public static + IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, ref IntPtr device_list, ref IntPtr lengths, byte @char, ref int binary_status, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (IntPtr* device_list_ptr = &device_list) + fixed (IntPtr* lengths_ptr = &lengths) + fixed (int* binary_status_ptr = &binary_status) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateProgramWithBinary((IntPtr)context, (uint)num_devices, (IntPtr*)device_list_ptr, (IntPtr*)lengths_ptr, (byte)@char, (int*)binary_status_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + unsafe IntPtr CreateProgramWithSource(IntPtr context, Int32 count, String[] strings, IntPtr* lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + IntPtr CreateProgramWithSource(IntPtr context, Int32 count, String[] strings, IntPtr[] lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (IntPtr* lengths_ptr = lengths) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + IntPtr CreateProgramWithSource(IntPtr context, Int32 count, String[] strings, ref IntPtr lengths, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (IntPtr* lengths_ptr = &lengths) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + unsafe IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret) + { + return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr[] lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode[] errcode_ret) + { + unsafe + { + fixed (IntPtr* lengths_ptr = lengths) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateProgramWithSource")] + public static + IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, ref IntPtr lengths, [OutAttribute] out OpenTK.Compute.CL10.ErrorCode errcode_ret) + { + unsafe + { + fixed (IntPtr* lengths_ptr = &lengths) + fixed (OpenTK.Compute.CL10.ErrorCode* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateProgramWithSource((IntPtr)context, (uint)count, (String[])strings, (IntPtr*)lengths_ptr, (OpenTK.Compute.CL10.ErrorCode*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateSampler")] + public static + unsafe IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [OutAttribute] int* errcode_ret) + { + return Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateSampler")] + public static + IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [OutAttribute] int[] errcode_ret) + { + unsafe + { + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clCreateSampler")] + public static + IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [OutAttribute] out int errcode_ret) + { + unsafe + { + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clCreateSampler((IntPtr)context, (bool)normalized_coords, (AddressingMode)addressing_mode, (FilterMode)filter_mode, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueBarrier")] + public static + int EnqueueBarrier(IntPtr command_queue) + { + return Delegates.clEnqueueBarrier((IntPtr)command_queue); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + unsafe int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + unsafe int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBuffer")] + public static + int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyBuffer((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_buffer, (IntPtr)src_offset, (IntPtr)dst_offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr*[] dst_origin, IntPtr*[] region, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** dst_origin_ptr = dst_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr*[] dst_origin, IntPtr*[] region, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** dst_origin_ptr = dst_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, ref IntPtr* dst_origin, ref IntPtr* region, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** dst_origin_ptr = &dst_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyBufferToImage")] + public static + unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, ref IntPtr* dst_origin, ref IntPtr* region, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** dst_origin_ptr = &dst_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyBufferToImage((IntPtr)command_queue, (IntPtr)src_buffer, (IntPtr)dst_image, (IntPtr)src_offset, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin, (IntPtr**)dst_origin, (IntPtr**)region, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr*[] src_origin, IntPtr*[] dst_origin, IntPtr*[] region, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** src_origin_ptr = src_origin) + fixed (IntPtr** dst_origin_ptr = dst_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr*[] src_origin, IntPtr*[] dst_origin, IntPtr*[] region, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** src_origin_ptr = src_origin) + fixed (IntPtr** dst_origin_ptr = dst_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, ref IntPtr* src_origin, ref IntPtr* dst_origin, ref IntPtr* region, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** src_origin_ptr = &src_origin) + fixed (IntPtr** dst_origin_ptr = &dst_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImage")] + public static + unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, ref IntPtr* src_origin, ref IntPtr* dst_origin, ref IntPtr* region, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** src_origin_ptr = &src_origin) + fixed (IntPtr** dst_origin_ptr = &dst_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyImage((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_image, (IntPtr**)src_origin_ptr, (IntPtr**)dst_origin_ptr, (IntPtr**)region_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin, (IntPtr**)region, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin, (IntPtr**)region, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr*[] src_origin, IntPtr*[] region, IntPtr dst_offset, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** src_origin_ptr = src_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr*[] src_origin, IntPtr*[] region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** src_origin_ptr = src_origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, ref IntPtr* src_origin, ref IntPtr* region, IntPtr dst_offset, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** src_origin_ptr = &src_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueCopyImageToBuffer")] + public static + unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, ref IntPtr* src_origin, ref IntPtr* region, IntPtr dst_offset, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** src_origin_ptr = &src_origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueCopyImageToBuffer((IntPtr)command_queue, (IntPtr)src_image, (IntPtr)dst_buffer, (IntPtr**)src_origin_ptr, (IntPtr**)region_ptr, (IntPtr)dst_offset, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + { + return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + { + return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] + public static + unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + { + return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + { + return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* image_row_pitch_ptr = image_row_pitch) + fixed (IntPtr* image_slice_pitch_ptr = image_slice_pitch) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* image_row_pitch_ptr = image_row_pitch) + fixed (IntPtr* image_slice_pitch_ptr = image_slice_pitch) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + fixed (int* errcode_ret_ptr = errcode_ret) + { + return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* image_row_pitch_ptr = &image_row_pitch) + fixed (IntPtr* image_slice_pitch_ptr = &image_slice_pitch) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] + public static + unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* image_row_pitch_ptr = &image_row_pitch) + fixed (IntPtr* image_slice_pitch_ptr = &image_slice_pitch) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + fixed (int* errcode_ret_ptr = &errcode_ret) + { + IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + errcode_ret = *errcode_ret_ptr; + return retval; + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMarker")] + public static + unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event) + { + return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMarker")] + public static + int EnqueueMarker(IntPtr command_queue, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMarker")] + public static + int EnqueueMarker(IntPtr command_queue, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueMarker((IntPtr)command_queue, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] ref T2 args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,,] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[,] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + where T6 : struct + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, [InAttribute, OutAttribute] T2[] args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_ptr = GCHandle.Alloc(args, GCHandleType.Pinned); + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args_ptr.AddrOfPinnedObject(), (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_ptr.Free(); + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, IntPtr[] mem_list, IntPtr args_mem_loc, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, Int32 num_mem_objects, ref IntPtr mem_list, IntPtr args_mem_loc, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T6 : struct + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr[] mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* mem_list_ptr = mem_list) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] ref T6 args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[,] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, [InAttribute, OutAttribute] T6[] args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T6 : struct + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle args_mem_loc_ptr = GCHandle.Alloc(args_mem_loc, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + args_mem_loc_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNativeKernel")] + public static + int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, ref IntPtr mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* mem_list_ptr = &mem_list) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueNativeKernel((IntPtr)command_queue, (IntPtr)user_func, (IntPtr)args, (IntPtr)cb_args, (uint)num_mem_objects, (IntPtr*)mem_list_ptr, (IntPtr)args_mem_loc, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + unsafe int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, Int32 work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset, (IntPtr*)global_work_size, (IntPtr*)local_work_size, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, Int32 work_dim, IntPtr[] global_work_offset, IntPtr[] global_work_size, IntPtr[] local_work_size, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* global_work_offset_ptr = global_work_offset) + fixed (IntPtr* global_work_size_ptr = global_work_size) + fixed (IntPtr* local_work_size_ptr = local_work_size) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, Int32 work_dim, ref IntPtr global_work_offset, ref IntPtr global_work_size, ref IntPtr local_work_size, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* global_work_offset_ptr = &global_work_offset) + fixed (IntPtr* global_work_size_ptr = &global_work_size) + fixed (IntPtr* local_work_size_ptr = &local_work_size) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + unsafe int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset, (IntPtr*)global_work_size, (IntPtr*)local_work_size, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr[] global_work_offset, IntPtr[] global_work_size, IntPtr[] local_work_size, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* global_work_offset_ptr = global_work_offset) + fixed (IntPtr* global_work_size_ptr = global_work_size) + fixed (IntPtr* local_work_size_ptr = local_work_size) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueNDRangeKernel")] + public static + int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, ref IntPtr global_work_offset, ref IntPtr global_work_size, ref IntPtr local_work_size, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* global_work_offset_ptr = &global_work_offset) + fixed (IntPtr* global_work_size_ptr = &global_work_size) + fixed (IntPtr* local_work_size_ptr = &local_work_size) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueNDRangeKernel((IntPtr)command_queue, (IntPtr)kernel, (uint)work_dim, (IntPtr*)global_work_offset_ptr, (IntPtr*)global_work_size_ptr, (IntPtr*)local_work_size_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadBuffer")] + public static + int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueReadBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_read, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin, (IntPtr**)region, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr*[] origin, IntPtr*[] region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueReadImage")] + public static + unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, ref IntPtr* origin, ref IntPtr* region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueReadImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_read, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)row_pitch, (IntPtr)slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + unsafe int EnqueueTask(IntPtr command_queue, IntPtr kernel, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + int EnqueueTask(IntPtr command_queue, IntPtr kernel, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + int EnqueueTask(IntPtr command_queue, IntPtr kernel, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + unsafe int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueTask")] + public static + int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueTask((IntPtr)command_queue, (IntPtr)kernel, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] ref T2 mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,,] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[,] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T2 : struct + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, [InAttribute, OutAttribute] T2[] mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T2 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle mapped_ptr_ptr = GCHandle.Alloc(mapped_ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + mapped_ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueUnmapMemObject")] + public static + int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueUnmapMemObject((IntPtr)command_queue, (IntPtr)memobj, (IntPtr)mapped_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + unsafe int EnqueueWaitForEvents(IntPtr command_queue, Int32 num_events, IntPtr* event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + int EnqueueWaitForEvents(IntPtr command_queue, Int32 num_events, IntPtr[] event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + int EnqueueWaitForEvents(IntPtr command_queue, Int32 num_events, ref IntPtr event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = &event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + unsafe int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr[] event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWaitForEvents")] + public static + int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, ref IntPtr event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = &event_list) + { + return Delegates.clEnqueueWaitForEvents((IntPtr)command_queue, (uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] ref T5 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T5 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, [InAttribute, OutAttribute] T5[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T5 : struct + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteBuffer")] + public static + int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + unsafe + { + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueWriteBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_write, (IntPtr)offset, (IntPtr)cb, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + where T7 : struct + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + finally + { + ptr_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin, (IntPtr**)region, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr*[] origin, IntPtr*[] region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event) + { + fixed (IntPtr** origin_ptr = origin) + fixed (IntPtr** region_ptr = region) + fixed (IntPtr* event_wait_list_ptr = event_wait_list) + fixed (IntPtr* @event_ptr = @event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] ref T7 ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[,] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, [InAttribute, OutAttribute] T7[] ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + where T7 : struct + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr_ptr.AddrOfPinnedObject(), (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + finally + { + ptr_ptr.Free(); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueWriteImage")] + public static + unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, ref IntPtr* origin, ref IntPtr* region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event) + { + fixed (IntPtr** origin_ptr = &origin) + fixed (IntPtr** region_ptr = ®ion) + fixed (IntPtr* event_wait_list_ptr = &event_wait_list) + fixed (IntPtr* @event_ptr = &@event) + { + return Delegates.clEnqueueWriteImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_write, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr)input_row_pitch, (IntPtr)input_slice_pitch, (IntPtr)ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr); + } + } + + + /// + /// Block until all GL execution is complete + /// + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clFinish")] + public static + int Finish(IntPtr command_queue) + { + return Delegates.clFinish((IntPtr)command_queue); + } + + + /// + /// Force execution of GL commands in finite time + /// + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clFlush")] + public static + int Flush(IntPtr command_queue) + { + return Delegates.clFlush((IntPtr)command_queue); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetCommandQueueInfo")] + public static + int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetCommandQueueInfo((IntPtr)command_queue, (CommandQueueInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetContextInfo")] + public static + int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetContextInfo((IntPtr)context, (ContextInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + unsafe int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, Int32 num_entries, IntPtr* devices, Int32* num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices, (uint*)num_devices); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, Int32 num_entries, IntPtr[] devices, Int32[] num_devices) + { + unsafe + { + fixed (IntPtr* devices_ptr = devices) + fixed (Int32* num_devices_ptr = num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, Int32 num_entries, ref IntPtr devices, ref Int32 num_devices) + { + unsafe + { + fixed (IntPtr* devices_ptr = &devices) + fixed (Int32* num_devices_ptr = &num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + unsafe int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices, (uint*)num_devices); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr[] devices, uint[] num_devices) + { + unsafe + { + fixed (IntPtr* devices_ptr = devices) + fixed (uint* num_devices_ptr = num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceIDs")] + public static + int GetDeviceID(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, ref IntPtr devices, ref uint num_devices) + { + unsafe + { + fixed (IntPtr* devices_ptr = &devices) + fixed (uint* num_devices_ptr = &num_devices) + { + return Delegates.clGetDeviceIDs((IntPtr)platform, (DeviceTypeFlags)device_type, (uint)num_entries, (IntPtr*)devices_ptr, (uint*)num_devices_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetDeviceInfo")] + public static + int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetDeviceInfo((IntPtr)device, (DeviceInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventInfo")] + public static + int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetEventInfo((IntPtr)@event, (EventInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetEventProfilingInfo")] + public static + int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetEventProfilingInfo((IntPtr)@event, (ProfilingInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetImageInfo")] + public static + int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetImageInfo((IntPtr)image, (ImageInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelInfo")] + public static + int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetKernelInfo((IntPtr)kernel, (KernelInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetKernelWorkGroupInfo")] + public static + int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetKernelWorkGroupInfo((IntPtr)kernel, (IntPtr)device, (KernelWorkGroupInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetMemObjectInfo")] + public static + int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetMemObjectInfo((IntPtr)memobj, (MemInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + unsafe int GetPlatformID(Int32 num_entries, IntPtr* platforms, Int32* num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms, (uint*)num_platforms); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + int GetPlatformID(Int32 num_entries, IntPtr[] platforms, Int32[] num_platforms) + { + unsafe + { + fixed (IntPtr* platforms_ptr = platforms) + fixed (Int32* num_platforms_ptr = num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + int GetPlatformID(Int32 num_entries, ref IntPtr platforms, ref Int32 num_platforms) + { + unsafe + { + fixed (IntPtr* platforms_ptr = &platforms) + fixed (Int32* num_platforms_ptr = &num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + unsafe int GetPlatformID(uint num_entries, IntPtr* platforms, uint* num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms, (uint*)num_platforms); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + int GetPlatformID(uint num_entries, IntPtr[] platforms, uint[] num_platforms) + { + unsafe + { + fixed (IntPtr* platforms_ptr = platforms) + fixed (uint* num_platforms_ptr = num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformIDs")] + public static + int GetPlatformID(uint num_entries, ref IntPtr platforms, ref uint num_platforms) + { + unsafe + { + fixed (IntPtr* platforms_ptr = &platforms) + fixed (uint* num_platforms_ptr = &num_platforms) + { + return Delegates.clGetPlatformIDs((uint)num_entries, (IntPtr*)platforms_ptr, (uint*)num_platforms_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetPlatformInfo")] + public static + int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetPlatformInfo((IntPtr)platform, (PlatformInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T4 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T4 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T4[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T4 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramBuildInfo")] + public static + int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetProgramBuildInfo((IntPtr)program, (IntPtr)device, (ProgramBuildInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetProgramInfo")] + public static + int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetProgramInfo((IntPtr)program, (ProgramInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] ref T3 param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[,] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr* param_value_size_ret) + where T3 : struct + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret); + } + finally + { + param_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] IntPtr[] param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, [InAttribute, OutAttribute] T3[] param_value, [OutAttribute] out IntPtr param_value_size_ret) + where T3 : struct + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + GCHandle param_value_ptr = GCHandle.Alloc(param_value, GCHandleType.Pinned); + try + { + int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value_ptr.AddrOfPinnedObject(), (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + finally + { + param_value_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret) + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr[] param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = param_value_size_ret) + { + return Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSamplerInfo")] + public static + int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] out IntPtr param_value_size_ret) + { + unsafe + { + fixed (IntPtr* param_value_size_ret_ptr = ¶m_value_size_ret) + { + int retval = Delegates.clGetSamplerInfo((IntPtr)sampler, (SamplerInfo)param_name, (IntPtr)param_value_size, (IntPtr)param_value, (IntPtr*)param_value_size_ret_ptr); + param_value_size_ret = *param_value_size_ret_ptr; + return retval; + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, Int32 num_entries, ImageFormat* image_formats, Int32* num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats, (uint*)num_image_formats); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, Int32 num_entries, ImageFormat[] image_formats, Int32[] num_image_formats) + { + unsafe + { + fixed (ImageFormat* image_formats_ptr = image_formats) + fixed (Int32* num_image_formats_ptr = num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, Int32 num_entries, ref ImageFormat image_formats, ref Int32 num_image_formats) + { + unsafe + { + fixed (ImageFormat* image_formats_ptr = &image_formats) + fixed (Int32* num_image_formats_ptr = &num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats, (uint*)num_image_formats); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat[] image_formats, uint[] num_image_formats) + { + unsafe + { + fixed (ImageFormat* image_formats_ptr = image_formats) + fixed (uint* num_image_formats_ptr = num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clGetSupportedImageFormats")] + public static + int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ref ImageFormat image_formats, ref uint num_image_formats) + { + unsafe + { + fixed (ImageFormat* image_formats_ptr = &image_formats) + fixed (uint* num_image_formats_ptr = &num_image_formats) + { + return Delegates.clGetSupportedImageFormats((IntPtr)context, (MemFlags)flags, (MemObjectType)image_type, (uint)num_entries, (ImageFormat*)image_formats_ptr, (uint*)num_image_formats_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseCommandQueue")] + public static + int ReleaseCommandQueue(IntPtr command_queue) + { + return Delegates.clReleaseCommandQueue((IntPtr)command_queue); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseContext")] + public static + int ReleaseContext(IntPtr context) + { + return Delegates.clReleaseContext((IntPtr)context); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseEvent")] + public static + int ReleaseEvent(IntPtr @event) + { + return Delegates.clReleaseEvent((IntPtr)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseKernel")] + public static + int ReleaseKernel(IntPtr kernel) + { + return Delegates.clReleaseKernel((IntPtr)kernel); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseMemObject")] + public static + int ReleaseMemObject(IntPtr memobj) + { + return Delegates.clReleaseMemObject((IntPtr)memobj); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseProgram")] + public static + int ReleaseProgram(IntPtr program) + { + return Delegates.clReleaseProgram((IntPtr)program); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clReleaseSampler")] + public static + int ReleaseSampler(IntPtr sampler) + { + return Delegates.clReleaseSampler((IntPtr)sampler); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainCommandQueue")] + public static + int RetainCommandQueue(IntPtr command_queue) + { + return Delegates.clRetainCommandQueue((IntPtr)command_queue); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainContext")] + public static + int RetainContext(IntPtr context) + { + return Delegates.clRetainContext((IntPtr)context); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainEvent")] + public static + int RetainEvent(IntPtr @event) + { + return Delegates.clRetainEvent((IntPtr)@event); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainKernel")] + public static + int RetainKernel(IntPtr kernel) + { + return Delegates.clRetainKernel((IntPtr)kernel); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainMemObject")] + public static + int RetainMemObject(IntPtr memobj) + { + return Delegates.clRetainMemObject((IntPtr)memobj); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainProgram")] + public static + int RetainProgram(IntPtr program) + { + return Delegates.clRetainProgram((IntPtr)program); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clRetainSampler")] + public static + int RetainSampler(IntPtr sampler) + { + return Delegates.clRetainSampler((IntPtr)sampler); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetCommandQueueProperty")] + public static + unsafe int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties) + { + return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetCommandQueueProperty")] + public static + int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags[] old_properties) + { + unsafe + { + fixed (CommandQueueFlags* old_properties_ptr = old_properties) + { + return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetCommandQueueProperty")] + public static + int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, ref CommandQueueFlags old_properties) + { + unsafe + { + fixed (CommandQueueFlags* old_properties_ptr = &old_properties) + { + return Delegates.clSetCommandQueueProperty((IntPtr)command_queue, (CommandQueueFlags)properties, (bool)enable, (CommandQueueFlags*)old_properties_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, Int32 arg_index, IntPtr arg_size, [InAttribute, OutAttribute] ref T3 arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, Int32 arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[,,] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, Int32 arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[,] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, Int32 arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, Int32 arg_index, IntPtr arg_size, IntPtr arg_value) + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [InAttribute, OutAttribute] ref T3 arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[,,] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[,] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, [InAttribute, OutAttribute] T3[] arg_value) + where T3 : struct + { + GCHandle arg_value_ptr = GCHandle.Alloc(arg_value, GCHandleType.Pinned); + try + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value_ptr.AddrOfPinnedObject()); + } + finally + { + arg_value_ptr.Free(); + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clSetKernelArg")] + public static + int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value) + { + return Delegates.clSetKernelArg((IntPtr)kernel, (uint)arg_index, (IntPtr)arg_size, (IntPtr)arg_value); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clUnloadCompiler")] + public static + int UnloadCompiler() + { + return Delegates.clUnloadCompiler(); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + unsafe int WaitForEvents(Int32 num_events, IntPtr* event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list); + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + int WaitForEvents(Int32 num_events, IntPtr[] event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + int WaitForEvents(Int32 num_events, ref IntPtr event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = &event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + unsafe int WaitForEvents(uint num_events, IntPtr* event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + int WaitForEvents(uint num_events, IntPtr[] event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clWaitForEvents")] + public static + int WaitForEvents(uint num_events, ref IntPtr event_list) + { + unsafe + { + fixed (IntPtr* event_list_ptr = &event_list) + { + return Delegates.clWaitForEvents((uint)num_events, (IntPtr*)event_list_ptr); + } + } + } + + } +} diff --git a/Source/OpenTK/Compute/CL10/Core.cs b/Source/OpenTK/Compute/CL10/Core.cs index 98882585..eda6473a 100644 --- a/Source/OpenTK/Compute/CL10/Core.cs +++ b/Source/OpenTK/Compute/CL10/Core.cs @@ -1,238 +1,238 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Compute.CL10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class CL - { - - internal static partial class Core - { - - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clBuildProgram", ExactSpelling = true)] - internal extern static unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateBuffer", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateCommandQueue", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateContext", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateContextFromType", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateImage2D", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateImage3D", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateKernel", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateKernel(IntPtr program, String kernel_name, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateKernelsInProgram", ExactSpelling = true)] - internal extern static unsafe int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [Out] uint* num_kernels_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateProgramWithBinary", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateProgramWithSource", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateSampler", ExactSpelling = true)] - internal extern static unsafe IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueBarrier", ExactSpelling = true)] - internal extern static int EnqueueBarrier(IntPtr command_queue); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyBuffer", ExactSpelling = true)] - internal extern static unsafe int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyBufferToImage", ExactSpelling = true)] - internal extern static unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyImage", ExactSpelling = true)] - internal extern static unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyImageToBuffer", ExactSpelling = true)] - internal extern static unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapBuffer", ExactSpelling = true)] - internal extern static unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapImage", ExactSpelling = true)] - internal extern static unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMarker", ExactSpelling = true)] - internal extern static unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueNativeKernel", ExactSpelling = true)] - internal extern static unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueNDRangeKernel", ExactSpelling = true)] - internal extern static unsafe int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueReadBuffer", ExactSpelling = true)] - internal extern static unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueReadImage", ExactSpelling = true)] - internal extern static unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueTask", ExactSpelling = true)] - internal extern static unsafe int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueUnmapMemObject", ExactSpelling = true)] - internal extern static unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWaitForEvents", ExactSpelling = true)] - internal extern static unsafe int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWriteBuffer", ExactSpelling = true)] - internal extern static unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWriteImage", ExactSpelling = true)] - internal extern static unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clFinish", ExactSpelling = true)] - internal extern static int Finish(IntPtr command_queue); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clFlush", ExactSpelling = true)] - internal extern static int Flush(IntPtr command_queue); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetCommandQueueInfo", ExactSpelling = true)] - internal extern static unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetContextInfo", ExactSpelling = true)] - internal extern static unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetDeviceIDs", ExactSpelling = true)] - internal extern static unsafe int GetDeviceIDs(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetDeviceInfo", ExactSpelling = true)] - internal extern static unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetEventInfo", ExactSpelling = true)] - internal extern static unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetEventProfilingInfo", ExactSpelling = true)] - internal extern static unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetImageInfo", ExactSpelling = true)] - internal extern static unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetKernelInfo", ExactSpelling = true)] - internal extern static unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetKernelWorkGroupInfo", ExactSpelling = true)] - internal extern static unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetMemObjectInfo", ExactSpelling = true)] - internal extern static unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetPlatformIDs", ExactSpelling = true)] - internal extern static unsafe int GetPlatformIDs(uint num_entries, IntPtr* platforms, uint* num_platforms); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetPlatformInfo", ExactSpelling = true)] - internal extern static unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetProgramBuildInfo", ExactSpelling = true)] - internal extern static unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetProgramInfo", ExactSpelling = true)] - internal extern static unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetSamplerInfo", ExactSpelling = true)] - internal extern static unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetSupportedImageFormats", ExactSpelling = true)] - internal extern static unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseCommandQueue", ExactSpelling = true)] - internal extern static int ReleaseCommandQueue(IntPtr command_queue); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseContext", ExactSpelling = true)] - internal extern static int ReleaseContext(IntPtr context); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseEvent", ExactSpelling = true)] - internal extern static int ReleaseEvent(IntPtr @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseKernel", ExactSpelling = true)] - internal extern static int ReleaseKernel(IntPtr kernel); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseMemObject", ExactSpelling = true)] - internal extern static int ReleaseMemObject(IntPtr memobj); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseProgram", ExactSpelling = true)] - internal extern static int ReleaseProgram(IntPtr program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseSampler", ExactSpelling = true)] - internal extern static int ReleaseSampler(IntPtr sampler); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainCommandQueue", ExactSpelling = true)] - internal extern static int RetainCommandQueue(IntPtr command_queue); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainContext", ExactSpelling = true)] - internal extern static int RetainContext(IntPtr context); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainEvent", ExactSpelling = true)] - internal extern static int RetainEvent(IntPtr @event); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainKernel", ExactSpelling = true)] - internal extern static int RetainKernel(IntPtr kernel); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainMemObject", ExactSpelling = true)] - internal extern static int RetainMemObject(IntPtr memobj); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainProgram", ExactSpelling = true)] - internal extern static int RetainProgram(IntPtr program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainSampler", ExactSpelling = true)] - internal extern static int RetainSampler(IntPtr sampler); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clSetCommandQueueProperty", ExactSpelling = true)] - internal extern static unsafe int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clSetKernelArg", ExactSpelling = true)] - internal extern static int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clUnloadCompiler", ExactSpelling = true)] - internal extern static int UnloadCompiler(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clWaitForEvents", ExactSpelling = true)] - internal extern static unsafe int WaitForEvents(uint num_events, IntPtr* event_list); - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Compute.CL10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class CL + { + + internal static partial class Core + { + + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clBuildProgram", ExactSpelling = true)] + internal extern static unsafe int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateBuffer", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateCommandQueue", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateContext", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateContextFromType", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateImage2D", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateImage3D", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateKernel", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateKernel(IntPtr program, String kernel_name, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateKernelsInProgram", ExactSpelling = true)] + internal extern static unsafe int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [OutAttribute] uint* num_kernels_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateProgramWithBinary", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateProgramWithSource", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clCreateSampler", ExactSpelling = true)] + internal extern static unsafe IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueBarrier", ExactSpelling = true)] + internal extern static int EnqueueBarrier(IntPtr command_queue); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyBuffer", ExactSpelling = true)] + internal extern static unsafe int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyBufferToImage", ExactSpelling = true)] + internal extern static unsafe int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyImage", ExactSpelling = true)] + internal extern static unsafe int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueCopyImageToBuffer", ExactSpelling = true)] + internal extern static unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapBuffer", ExactSpelling = true)] + internal extern static unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapImage", ExactSpelling = true)] + internal extern static unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMarker", ExactSpelling = true)] + internal extern static unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueNativeKernel", ExactSpelling = true)] + internal extern static unsafe int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueNDRangeKernel", ExactSpelling = true)] + internal extern static unsafe int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueReadBuffer", ExactSpelling = true)] + internal extern static unsafe int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueReadImage", ExactSpelling = true)] + internal extern static unsafe int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueTask", ExactSpelling = true)] + internal extern static unsafe int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueUnmapMemObject", ExactSpelling = true)] + internal extern static unsafe int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWaitForEvents", ExactSpelling = true)] + internal extern static unsafe int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWriteBuffer", ExactSpelling = true)] + internal extern static unsafe int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueWriteImage", ExactSpelling = true)] + internal extern static unsafe int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clFinish", ExactSpelling = true)] + internal extern static int Finish(IntPtr command_queue); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clFlush", ExactSpelling = true)] + internal extern static int Flush(IntPtr command_queue); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetCommandQueueInfo", ExactSpelling = true)] + internal extern static unsafe int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetContextInfo", ExactSpelling = true)] + internal extern static unsafe int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetDeviceIDs", ExactSpelling = true)] + internal extern static unsafe int GetDeviceIDs(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetDeviceInfo", ExactSpelling = true)] + internal extern static unsafe int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetEventInfo", ExactSpelling = true)] + internal extern static unsafe int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetEventProfilingInfo", ExactSpelling = true)] + internal extern static unsafe int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetImageInfo", ExactSpelling = true)] + internal extern static unsafe int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetKernelInfo", ExactSpelling = true)] + internal extern static unsafe int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetKernelWorkGroupInfo", ExactSpelling = true)] + internal extern static unsafe int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetMemObjectInfo", ExactSpelling = true)] + internal extern static unsafe int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetPlatformIDs", ExactSpelling = true)] + internal extern static unsafe int GetPlatformIDs(uint num_entries, IntPtr* platforms, uint* num_platforms); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetPlatformInfo", ExactSpelling = true)] + internal extern static unsafe int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetProgramBuildInfo", ExactSpelling = true)] + internal extern static unsafe int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetProgramInfo", ExactSpelling = true)] + internal extern static unsafe int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetSamplerInfo", ExactSpelling = true)] + internal extern static unsafe int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clGetSupportedImageFormats", ExactSpelling = true)] + internal extern static unsafe int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseCommandQueue", ExactSpelling = true)] + internal extern static int ReleaseCommandQueue(IntPtr command_queue); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseContext", ExactSpelling = true)] + internal extern static int ReleaseContext(IntPtr context); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseEvent", ExactSpelling = true)] + internal extern static int ReleaseEvent(IntPtr @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseKernel", ExactSpelling = true)] + internal extern static int ReleaseKernel(IntPtr kernel); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseMemObject", ExactSpelling = true)] + internal extern static int ReleaseMemObject(IntPtr memobj); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseProgram", ExactSpelling = true)] + internal extern static int ReleaseProgram(IntPtr program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clReleaseSampler", ExactSpelling = true)] + internal extern static int ReleaseSampler(IntPtr sampler); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainCommandQueue", ExactSpelling = true)] + internal extern static int RetainCommandQueue(IntPtr command_queue); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainContext", ExactSpelling = true)] + internal extern static int RetainContext(IntPtr context); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainEvent", ExactSpelling = true)] + internal extern static int RetainEvent(IntPtr @event); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainKernel", ExactSpelling = true)] + internal extern static int RetainKernel(IntPtr kernel); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainMemObject", ExactSpelling = true)] + internal extern static int RetainMemObject(IntPtr memobj); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainProgram", ExactSpelling = true)] + internal extern static int RetainProgram(IntPtr program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clRetainSampler", ExactSpelling = true)] + internal extern static int RetainSampler(IntPtr sampler); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clSetCommandQueueProperty", ExactSpelling = true)] + internal extern static unsafe int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clSetKernelArg", ExactSpelling = true)] + internal extern static int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clUnloadCompiler", ExactSpelling = true)] + internal extern static int UnloadCompiler(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clWaitForEvents", ExactSpelling = true)] + internal extern static unsafe int WaitForEvents(uint num_events, IntPtr* event_list); + } + } +} diff --git a/Source/OpenTK/Compute/CL10/Delegates.cs b/Source/OpenTK/Compute/CL10/Delegates.cs index 0a70a876..c1ec4fbd 100644 --- a/Source/OpenTK/Compute/CL10/Delegates.cs +++ b/Source/OpenTK/Compute/CL10/Delegates.cs @@ -1,237 +1,237 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Compute.CL10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 0649 - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class CL - { - internal static partial class Delegates - { - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data); - internal unsafe static BuildProgram clBuildProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateBuffer clCreateBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateCommandQueue clCreateCommandQueue; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [Out] int* errcode_ret); - internal unsafe static CreateContext clCreateContext; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateContextFromType clCreateContextFromType; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [Out] int* errcode_ret); - internal unsafe static CreateImage2D clCreateImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [Out] int* errcode_ret); - internal unsafe static CreateImage3D clCreateImage3D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateKernel(IntPtr program, String kernel_name, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateKernel clCreateKernel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [Out] uint* num_kernels_ret); - internal unsafe static CreateKernelsInProgram clCreateKernelsInProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateProgramWithBinary clCreateProgramWithBinary; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [Out] OpenTK.Compute.CL10.ErrorCode* errcode_ret); - internal unsafe static CreateProgramWithSource clCreateProgramWithSource; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [Out] int* errcode_ret); - internal unsafe static CreateSampler clCreateSampler; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int EnqueueBarrier(IntPtr command_queue); - internal static EnqueueBarrier clEnqueueBarrier; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueCopyBuffer clEnqueueCopyBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueCopyBufferToImage clEnqueueCopyBufferToImage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueCopyImage clEnqueueCopyImage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret); - internal unsafe static EnqueueMapBuffer clEnqueueMapBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [Out] int* errcode_ret); - internal unsafe static EnqueueMapImage clEnqueueMapImage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueMarker(IntPtr command_queue, IntPtr* @event); - internal unsafe static EnqueueMarker clEnqueueMarker; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueNativeKernel clEnqueueNativeKernel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueNDRangeKernel clEnqueueNDRangeKernel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueReadBuffer clEnqueueReadBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueReadImage clEnqueueReadImage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueTask clEnqueueTask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueUnmapMemObject clEnqueueUnmapMemObject; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list); - internal unsafe static EnqueueWaitForEvents clEnqueueWaitForEvents; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueWriteBuffer clEnqueueWriteBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); - internal unsafe static EnqueueWriteImage clEnqueueWriteImage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int Finish(IntPtr command_queue); - internal static Finish clFinish; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int Flush(IntPtr command_queue); - internal static Flush clFlush; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetCommandQueueInfo clGetCommandQueueInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetContextInfo clGetContextInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetDeviceIDs(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices); - internal unsafe static GetDeviceIDs clGetDeviceIDs; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetDeviceInfo clGetDeviceInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetEventInfo clGetEventInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetEventProfilingInfo clGetEventProfilingInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetImageInfo clGetImageInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetKernelInfo clGetKernelInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetKernelWorkGroupInfo clGetKernelWorkGroupInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetMemObjectInfo clGetMemObjectInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetPlatformIDs(uint num_entries, IntPtr* platforms, uint* num_platforms); - internal unsafe static GetPlatformIDs clGetPlatformIDs; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetPlatformInfo clGetPlatformInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetProgramBuildInfo clGetProgramBuildInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetProgramInfo clGetProgramInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [Out] IntPtr* param_value_size_ret); - internal unsafe static GetSamplerInfo clGetSamplerInfo; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats); - internal unsafe static GetSupportedImageFormats clGetSupportedImageFormats; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseCommandQueue(IntPtr command_queue); - internal static ReleaseCommandQueue clReleaseCommandQueue; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseContext(IntPtr context); - internal static ReleaseContext clReleaseContext; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseEvent(IntPtr @event); - internal static ReleaseEvent clReleaseEvent; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseKernel(IntPtr kernel); - internal static ReleaseKernel clReleaseKernel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseMemObject(IntPtr memobj); - internal static ReleaseMemObject clReleaseMemObject; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseProgram(IntPtr program); - internal static ReleaseProgram clReleaseProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int ReleaseSampler(IntPtr sampler); - internal static ReleaseSampler clReleaseSampler; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainCommandQueue(IntPtr command_queue); - internal static RetainCommandQueue clRetainCommandQueue; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainContext(IntPtr context); - internal static RetainContext clRetainContext; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainEvent(IntPtr @event); - internal static RetainEvent clRetainEvent; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainKernel(IntPtr kernel); - internal static RetainKernel clRetainKernel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainMemObject(IntPtr memobj); - internal static RetainMemObject clRetainMemObject; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainProgram(IntPtr program); - internal static RetainProgram clRetainProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int RetainSampler(IntPtr sampler); - internal static RetainSampler clRetainSampler; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties); - internal unsafe static SetCommandQueueProperty clSetCommandQueueProperty; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value); - internal static SetKernelArg clSetKernelArg; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int UnloadCompiler(); - internal static UnloadCompiler clUnloadCompiler; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate int WaitForEvents(uint num_events, IntPtr* event_list); - internal unsafe static WaitForEvents clWaitForEvents; - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Compute.CL10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 0649 + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class CL + { + internal static partial class Delegates + { + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int BuildProgram(IntPtr program, uint num_devices, IntPtr* device_list, String options, IntPtr pfn_notify, IntPtr user_data); + internal unsafe static BuildProgram clBuildProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateBuffer(IntPtr context, MemFlags flags, IntPtr size, IntPtr host_ptr, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateBuffer clCreateBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateCommandQueue(IntPtr context, IntPtr device, CommandQueueFlags properties, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateCommandQueue clCreateCommandQueue; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateContext(ContextProperties* properties, uint num_devices, IntPtr* devices, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] int* errcode_ret); + internal unsafe static CreateContext clCreateContext; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateContextFromType(ContextProperties* properties, DeviceTypeFlags device_type, IntPtr pfn_notify, IntPtr user_data, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateContextFromType clCreateContextFromType; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateImage2D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret); + internal unsafe static CreateImage2D clCreateImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateImage3D(IntPtr context, MemFlags flags, ImageFormat* image_format, IntPtr image_width, IntPtr image_height, IntPtr image_depth, IntPtr image_row_pitch, IntPtr image_slice_pitch, IntPtr host_ptr, [OutAttribute] int* errcode_ret); + internal unsafe static CreateImage3D clCreateImage3D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateKernel(IntPtr program, String kernel_name, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateKernel clCreateKernel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int CreateKernelsInProgram(IntPtr program, uint num_kernels, IntPtr* kernels, [OutAttribute] uint* num_kernels_ret); + internal unsafe static CreateKernelsInProgram clCreateKernelsInProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateProgramWithBinary(IntPtr context, uint num_devices, IntPtr* device_list, IntPtr* lengths, byte @char, int* binary_status, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateProgramWithBinary clCreateProgramWithBinary; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateProgramWithSource(IntPtr context, uint count, String[] strings, IntPtr* lengths, [OutAttribute] OpenTK.Compute.CL10.ErrorCode* errcode_ret); + internal unsafe static CreateProgramWithSource clCreateProgramWithSource; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr CreateSampler(IntPtr context, bool normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode, [OutAttribute] int* errcode_ret); + internal unsafe static CreateSampler clCreateSampler; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int EnqueueBarrier(IntPtr command_queue); + internal static EnqueueBarrier clEnqueueBarrier; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueCopyBuffer(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_buffer, IntPtr src_offset, IntPtr dst_offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueCopyBuffer clEnqueueCopyBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueCopyBufferToImage(IntPtr command_queue, IntPtr src_buffer, IntPtr dst_image, IntPtr src_offset, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueCopyBufferToImage clEnqueueCopyBufferToImage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueCopyImage(IntPtr command_queue, IntPtr src_image, IntPtr dst_image, IntPtr** src_origin, IntPtr** dst_origin, IntPtr** region, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueCopyImage clEnqueueCopyImage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal unsafe static EnqueueMapBuffer clEnqueueMapBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal unsafe static EnqueueMapImage clEnqueueMapImage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueMarker(IntPtr command_queue, IntPtr* @event); + internal unsafe static EnqueueMarker clEnqueueMarker; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueNativeKernel(IntPtr command_queue, IntPtr user_func, IntPtr args, IntPtr cb_args, uint num_mem_objects, IntPtr* mem_list, IntPtr args_mem_loc, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueNativeKernel clEnqueueNativeKernel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueNDRangeKernel(IntPtr command_queue, IntPtr kernel, uint work_dim, IntPtr* global_work_offset, IntPtr* global_work_size, IntPtr* local_work_size, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueNDRangeKernel clEnqueueNDRangeKernel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueReadBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_read, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueReadBuffer clEnqueueReadBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueReadImage(IntPtr command_queue, IntPtr image, bool blocking_read, IntPtr** origin, IntPtr** region, IntPtr row_pitch, IntPtr slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueReadImage clEnqueueReadImage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueTask(IntPtr command_queue, IntPtr kernel, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueTask clEnqueueTask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueUnmapMemObject(IntPtr command_queue, IntPtr memobj, IntPtr mapped_ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueUnmapMemObject clEnqueueUnmapMemObject; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueWaitForEvents(IntPtr command_queue, uint num_events, IntPtr* event_list); + internal unsafe static EnqueueWaitForEvents clEnqueueWaitForEvents; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueWriteBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueWriteBuffer clEnqueueWriteBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int EnqueueWriteImage(IntPtr command_queue, IntPtr image, bool blocking_write, IntPtr** origin, IntPtr** region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); + internal unsafe static EnqueueWriteImage clEnqueueWriteImage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int Finish(IntPtr command_queue); + internal static Finish clFinish; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int Flush(IntPtr command_queue); + internal static Flush clFlush; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetCommandQueueInfo(IntPtr command_queue, CommandQueueInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetCommandQueueInfo clGetCommandQueueInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetContextInfo(IntPtr context, ContextInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetContextInfo clGetContextInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetDeviceIDs(IntPtr platform, DeviceTypeFlags device_type, uint num_entries, IntPtr* devices, uint* num_devices); + internal unsafe static GetDeviceIDs clGetDeviceIDs; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetDeviceInfo(IntPtr device, DeviceInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetDeviceInfo clGetDeviceInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetEventInfo(IntPtr @event, EventInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetEventInfo clGetEventInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetEventProfilingInfo(IntPtr @event, ProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetEventProfilingInfo clGetEventProfilingInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetImageInfo(IntPtr image, ImageInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetImageInfo clGetImageInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetKernelInfo(IntPtr kernel, KernelInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetKernelInfo clGetKernelInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetKernelWorkGroupInfo(IntPtr kernel, IntPtr device, KernelWorkGroupInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetKernelWorkGroupInfo clGetKernelWorkGroupInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetMemObjectInfo(IntPtr memobj, MemInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetMemObjectInfo clGetMemObjectInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetPlatformIDs(uint num_entries, IntPtr* platforms, uint* num_platforms); + internal unsafe static GetPlatformIDs clGetPlatformIDs; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetPlatformInfo(IntPtr platform, PlatformInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetPlatformInfo clGetPlatformInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetProgramBuildInfo(IntPtr program, IntPtr device, ProgramBuildInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetProgramBuildInfo clGetProgramBuildInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetProgramInfo(IntPtr program, ProgramInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetProgramInfo clGetProgramInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetSamplerInfo(IntPtr sampler, SamplerInfo param_name, IntPtr param_value_size, IntPtr param_value, [OutAttribute] IntPtr* param_value_size_ret); + internal unsafe static GetSamplerInfo clGetSamplerInfo; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int GetSupportedImageFormats(IntPtr context, MemFlags flags, MemObjectType image_type, uint num_entries, ImageFormat* image_formats, uint* num_image_formats); + internal unsafe static GetSupportedImageFormats clGetSupportedImageFormats; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseCommandQueue(IntPtr command_queue); + internal static ReleaseCommandQueue clReleaseCommandQueue; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseContext(IntPtr context); + internal static ReleaseContext clReleaseContext; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseEvent(IntPtr @event); + internal static ReleaseEvent clReleaseEvent; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseKernel(IntPtr kernel); + internal static ReleaseKernel clReleaseKernel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseMemObject(IntPtr memobj); + internal static ReleaseMemObject clReleaseMemObject; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseProgram(IntPtr program); + internal static ReleaseProgram clReleaseProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int ReleaseSampler(IntPtr sampler); + internal static ReleaseSampler clReleaseSampler; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainCommandQueue(IntPtr command_queue); + internal static RetainCommandQueue clRetainCommandQueue; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainContext(IntPtr context); + internal static RetainContext clRetainContext; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainEvent(IntPtr @event); + internal static RetainEvent clRetainEvent; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainKernel(IntPtr kernel); + internal static RetainKernel clRetainKernel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainMemObject(IntPtr memobj); + internal static RetainMemObject clRetainMemObject; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainProgram(IntPtr program); + internal static RetainProgram clRetainProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int RetainSampler(IntPtr sampler); + internal static RetainSampler clRetainSampler; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int SetCommandQueueProperty(IntPtr command_queue, CommandQueueFlags properties, bool enable, CommandQueueFlags* old_properties); + internal unsafe static SetCommandQueueProperty clSetCommandQueueProperty; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int SetKernelArg(IntPtr kernel, uint arg_index, IntPtr arg_size, IntPtr arg_value); + internal static SetKernelArg clSetKernelArg; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int UnloadCompiler(); + internal static UnloadCompiler clUnloadCompiler; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate int WaitForEvents(uint num_events, IntPtr* event_list); + internal unsafe static WaitForEvents clWaitForEvents; + } + } +} diff --git a/Source/OpenTK/Compute/CL10/Enums.cs b/Source/OpenTK/Compute/CL10/Enums.cs index 3c2d4f85..238c3587 100644 --- a/Source/OpenTK/Compute/CL10/Enums.cs +++ b/Source/OpenTK/Compute/CL10/Enums.cs @@ -1,702 +1,702 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -using System; - -namespace OpenTK.Compute.CL10 -{ - #pragma warning disable 1591 - - public enum AddressingMode - { - AddressNone = ((int)0X1130), - AddressClampToEdge = ((int)0X1131), - AddressClamp = ((int)0X1132), - AddressRepeat = ((int)0X1133), - } - - public enum All - { - DeviceTypeDefault = ((int)(1 << 0)), - ExecKernel = ((int)(1 << 0)), - FpDenorm = ((int)(1 << 0)), - MapRead = ((int)(1 << 0)), - MemReadWrite = ((int)(1 << 0)), - QueueOutOfOrderExecModeEnable = ((int)(1 << 0)), - DeviceTypeCpu = ((int)(1 << 1)), - ExecNativeKernel = ((int)(1 << 1)), - FpInfNan = ((int)(1 << 1)), - MapWrite = ((int)(1 << 1)), - MemWriteOnly = ((int)(1 << 1)), - QueueProfilingEnable = ((int)(1 << 1)), - DeviceTypeGpu = ((int)(1 << 2)), - FpRoundToNearest = ((int)(1 << 2)), - MemReadOnly = ((int)(1 << 2)), - DeviceTypeAccelerator = ((int)(1 << 3)), - FpRoundToZero = ((int)(1 << 3)), - MemUseHostPtr = ((int)(1 << 3)), - FpRoundToInf = ((int)(1 << 4)), - MemAllocHostPtr = ((int)(1 << 4)), - FpFma = ((int)(1 << 5)), - MemCopyHostPtr = ((int)(1 << 5)), - ScharMin = ((int)(-127-1)), - IntMin = ((int)(-2147483647-1)), - ShrtMin = ((int)(-32767-1)), - BuildSuccess = ((int)0), - False = ((int)0), - Success = ((int)0), - Complete = ((int)0X0), - None = ((int)0X0), - PlatformProfile = ((int)0X0900), - PlatformVersion = ((int)0X0901), - PlatformName = ((int)0X0902), - PlatformVendor = ((int)0X0903), - PlatformExtensions = ((int)0X0904), - Local = ((int)0X1), - ReadOnlyCache = ((int)0X1), - Running = ((int)0X1), - DeviceType = ((int)0X1000), - DeviceVendorId = ((int)0X1001), - DeviceMaxComputeUnits = ((int)0X1002), - DeviceMaxWorkItemDimensions = ((int)0X1003), - DeviceMaxWorkGroupSize = ((int)0X1004), - DeviceMaxWorkItemSizes = ((int)0X1005), - DevicePreferredVectorWidthChar = ((int)0X1006), - DevicePreferredVectorWidthShort = ((int)0X1007), - DevicePreferredVectorWidthInt = ((int)0X1008), - DevicePreferredVectorWidthLong = ((int)0X1009), - DevicePreferredVectorWidthFloat = ((int)0X100a), - DevicePreferredVectorWidthDouble = ((int)0X100b), - DeviceMaxClockFrequency = ((int)0X100c), - DeviceAddressBits = ((int)0X100d), - DeviceMaxReadImageArgs = ((int)0X100e), - DeviceMaxWriteImageArgs = ((int)0X100f), - DeviceMaxMemAllocSize = ((int)0X1010), - DeviceImage2dMaxWidth = ((int)0X1011), - DeviceImage2dMaxHeight = ((int)0X1012), - DeviceImage3dMaxWidth = ((int)0X1013), - DeviceImage3dMaxHeight = ((int)0X1014), - DeviceImage3dMaxDepth = ((int)0X1015), - DeviceImageSupport = ((int)0X1016), - DeviceMaxParameterSize = ((int)0X1017), - DeviceMaxSamplers = ((int)0X1018), - DeviceMemBaseAddrAlign = ((int)0X1019), - DeviceMinDataTypeAlignSize = ((int)0X101a), - DeviceSingleFpConfig = ((int)0X101b), - DeviceGlobalMemCacheType = ((int)0X101c), - DeviceGlobalMemCachelineSize = ((int)0X101d), - DeviceGlobalMemCacheSize = ((int)0X101e), - DeviceGlobalMemSize = ((int)0X101f), - DeviceMaxConstantBufferSize = ((int)0X1020), - DeviceMaxConstantArgs = ((int)0X1021), - DeviceLocalMemType = ((int)0X1022), - DeviceLocalMemSize = ((int)0X1023), - DeviceErrorCorrectionSupport = ((int)0X1024), - DeviceProfilingTimerResolution = ((int)0X1025), - DeviceEndianLittle = ((int)0X1026), - DeviceAvailable = ((int)0X1027), - DeviceCompilerAvailable = ((int)0X1028), - DeviceExecutionCapabilities = ((int)0X1029), - DeviceQueueProperties = ((int)0X102a), - DeviceName = ((int)0X102b), - DeviceVendor = ((int)0X102c), - DriverVersion = ((int)0X102d), - DeviceProfile = ((int)0X102e), - DeviceVersion = ((int)0X102f), - DeviceExtensions = ((int)0X1030), - DevicePlatform = ((int)0X1031), - ContextReferenceCount = ((int)0X1080), - ContextDevices = ((int)0X1081), - ContextProperties = ((int)0X1082), - ContextPlatform = ((int)0X1084), - QueueContext = ((int)0X1090), - QueueDevice = ((int)0X1091), - QueueReferenceCount = ((int)0X1092), - QueueProperties = ((int)0X1093), - R = ((int)0X10b0), - A = ((int)0X10b1), - Rg = ((int)0X10b2), - Ra = ((int)0X10b3), - Rgb = ((int)0X10b4), - Rgba = ((int)0X10b5), - Bgra = ((int)0X10b6), - Argb = ((int)0X10b7), - Intensity = ((int)0X10b8), - Luminance = ((int)0X10b9), - SnormInt8 = ((int)0X10d0), - SnormInt16 = ((int)0X10d1), - UnormInt8 = ((int)0X10d2), - UnormInt16 = ((int)0X10d3), - UnormShort565 = ((int)0X10d4), - UnormShort555 = ((int)0X10d5), - UnormInt101010 = ((int)0X10d6), - SignedInt8 = ((int)0X10d7), - SignedInt16 = ((int)0X10d8), - SignedInt32 = ((int)0X10d9), - UnsignedInt8 = ((int)0X10da), - UnsignedInt16 = ((int)0X10db), - UnsignedInt32 = ((int)0X10dc), - HalfFloat = ((int)0X10dd), - Float = ((int)0X10de), - MemObjectBuffer = ((int)0X10f0), - MemObjectImage2d = ((int)0X10f1), - MemObjectImage3d = ((int)0X10f2), - MemType = ((int)0X1100), - MemFlags = ((int)0X1101), - MemSize = ((int)0X1102), - MemHostPtr = ((int)0X1103), - MemMapCount = ((int)0X1104), - MemReferenceCount = ((int)0X1105), - MemContext = ((int)0X1106), - ImageFormat = ((int)0X1110), - ImageElementSize = ((int)0X1111), - ImageRowPitch = ((int)0X1112), - ImageSlicePitch = ((int)0X1113), - ImageWidth = ((int)0X1114), - ImageHeight = ((int)0X1115), - ImageDepth = ((int)0X1116), - AddressNone = ((int)0X1130), - AddressClampToEdge = ((int)0X1131), - AddressClamp = ((int)0X1132), - AddressRepeat = ((int)0X1133), - FilterNearest = ((int)0X1140), - FilterLinear = ((int)0X1141), - SamplerReferenceCount = ((int)0X1150), - SamplerContext = ((int)0X1151), - SamplerNormalizedCoords = ((int)0X1152), - SamplerAddressingMode = ((int)0X1153), - SamplerFilterMode = ((int)0X1154), - ProgramReferenceCount = ((int)0X1160), - ProgramContext = ((int)0X1161), - ProgramNumDevices = ((int)0X1162), - ProgramDevices = ((int)0X1163), - ProgramSource = ((int)0X1164), - ProgramBinarySizes = ((int)0X1165), - ProgramBinaries = ((int)0X1166), - ProgramBuildStatus = ((int)0X1181), - ProgramBuildOptions = ((int)0X1182), - ProgramBuildLog = ((int)0X1183), - KernelFunctionName = ((int)0X1190), - KernelNumArgs = ((int)0X1191), - KernelReferenceCount = ((int)0X1192), - KernelContext = ((int)0X1193), - KernelProgram = ((int)0X1194), - KernelWorkGroupSize = ((int)0X11b0), - KernelCompileWorkGroupSize = ((int)0X11b1), - KernelLocalMemSize = ((int)0X11b2), - EventCommandQueue = ((int)0X11d0), - EventCommandType = ((int)0X11d1), - EventReferenceCount = ((int)0X11d2), - EventCommandExecutionStatus = ((int)0X11d3), - CommandNdrangeKernel = ((int)0X11f0), - CommandTask = ((int)0X11f1), - CommandNativeKernel = ((int)0X11f2), - CommandReadBuffer = ((int)0X11f3), - CommandWriteBuffer = ((int)0X11f4), - CommandCopyBuffer = ((int)0X11f5), - CommandReadImage = ((int)0X11f6), - CommandWriteImage = ((int)0X11f7), - CommandCopyImage = ((int)0X11f8), - CommandCopyImageToBuffer = ((int)0X11f9), - CommandCopyBufferToImage = ((int)0X11fa), - CommandMapBuffer = ((int)0X11fb), - CommandMapImage = ((int)0X11fc), - CommandUnmapMemObject = ((int)0X11fd), - CommandMarker = ((int)0X11fe), - CommandAcquireGlObjects = ((int)0X11ff), - CommandReleaseGlObjects = ((int)0X1200), - ProfilingCommandQueued = ((int)0X1280), - ProfilingCommandSubmit = ((int)0X1281), - ProfilingCommandStart = ((int)0X1282), - ProfilingCommandEnd = ((int)0X1283), - Global = ((int)0X2), - ReadWriteCache = ((int)0X2), - Submitted = ((int)0X2), - Queued = ((int)0X3), - DeviceTypeAll = unchecked((int)0Xffffffff), - UintMax = unchecked((int)0Xffffffff), - True = ((int)1), - Version10 = ((int)1), - BuildNone = ((int)-1), - DeviceNotFound = ((int)-1), - ImageFormatNotSupported = ((int)-10), - DblMinExp = ((int)-1021), - BuildProgramFailure = ((int)-11), - MapFailure = ((int)-12), - FltMinExp = ((int)-125), - ScharMax = ((int)127), - DblDig = ((int)15), - DblRadix = ((int)2), - FltRadix = ((int)2), - BuildError = ((int)-2), - DeviceNotAvailable = ((int)-2), - IntMax = unchecked((int)2147483647), - FltMantDig = ((int)24), - UcharMax = ((int)255), - BuildInProgress = ((int)-3), - CompilerNotAvailable = ((int)-3), - InvalidValue = ((int)-30), - DblMin10Exp = ((int)-307), - InvalidDeviceType = ((int)-31), - InvalidPlatform = ((int)-32), - ShrtMax = ((int)32767), - InvalidDevice = ((int)-33), - InvalidContext = ((int)-34), - InvalidQueueProperties = ((int)-35), - InvalidCommandQueue = ((int)-36), - FltMin10Exp = ((int)-37), - InvalidHostPtr = ((int)-37), - InvalidMemObject = ((int)-38), - InvalidImageFormatDescriptor = ((int)-39), - MemObjectAllocationFailure = ((int)-4), - InvalidImageSize = ((int)-40), - InvalidSampler = ((int)-41), - InvalidBinary = ((int)-42), - InvalidBuildOptions = ((int)-43), - InvalidProgram = ((int)-44), - InvalidProgramExecutable = ((int)-45), - InvalidKernelName = ((int)-46), - InvalidKernelDefinition = ((int)-47), - InvalidKernel = ((int)-48), - InvalidArgIndex = ((int)-49), - OutOfResources = ((int)-5), - InvalidArgValue = ((int)-50), - InvalidArgSize = ((int)-51), - InvalidKernelArgs = ((int)-52), - DblMantDig = ((int)53), - InvalidWorkDimension = ((int)-53), - InvalidWorkGroupSize = ((int)-54), - InvalidWorkItemSize = ((int)-55), - InvalidGlobalOffset = ((int)-56), - InvalidEventWaitList = ((int)-57), - InvalidEvent = ((int)-58), - InvalidOperation = ((int)-59), - FltDig = ((int)6), - OutOfHostMemory = ((int)-6), - InvalidGlObject = ((int)-60), - InvalidBufferSize = ((int)-61), - InvalidMipLevel = ((int)-62), - UshrtMax = ((int)65535), - ProfilingInfoNotAvailable = ((int)-7), - CharBit = ((int)8), - MemCopyOverlap = ((int)-8), - ImageFormatMismatch = ((int)-9), - } - - public enum Bool - { - False = ((int)0), - True = ((int)1), - } - - public enum BuildStatus - { - BuildSuccess = ((int)0), - BuildNone = ((int)-1), - BuildError = ((int)-2), - BuildInProgress = ((int)-3), - } - - public enum ChannelOrder - { - R = ((int)0X10b0), - A = ((int)0X10b1), - Rg = ((int)0X10b2), - Ra = ((int)0X10b3), - Rgb = ((int)0X10b4), - Rgba = ((int)0X10b5), - Bgra = ((int)0X10b6), - Argb = ((int)0X10b7), - Intensity = ((int)0X10b8), - Luminance = ((int)0X10b9), - } - - public enum ChannelType - { - SnormInt8 = ((int)0X10d0), - SnormInt16 = ((int)0X10d1), - UnormInt8 = ((int)0X10d2), - UnormInt16 = ((int)0X10d3), - UnormShort565 = ((int)0X10d4), - UnormShort555 = ((int)0X10d5), - UnormInt101010 = ((int)0X10d6), - SignedInt8 = ((int)0X10d7), - SignedInt16 = ((int)0X10d8), - SignedInt32 = ((int)0X10d9), - UnsignedInt8 = ((int)0X10da), - UnsignedInt16 = ((int)0X10db), - UnsignedInt32 = ((int)0X10dc), - HalfFloat = ((int)0X10dd), - Float = ((int)0X10de), - } - - public enum CommandExecutionStatus - { - Complete = ((int)0X0), - Running = ((int)0X1), - Submitted = ((int)0X2), - Queued = ((int)0X3), - } - - public enum CommandQueueFlags - { - QueueOutOfOrderExecModeEnable = ((int)(1 << 0)), - QueueProfilingEnable = ((int)(1 << 1)), - } - - public enum CommandQueueInfo - { - QueueContext = ((int)0X1090), - QueueDevice = ((int)0X1091), - QueueReferenceCount = ((int)0X1092), - QueueProperties = ((int)0X1093), - } - - public enum CommandType - { - CommandNdrangeKernel = ((int)0X11f0), - CommandTask = ((int)0X11f1), - CommandNativeKernel = ((int)0X11f2), - CommandReadBuffer = ((int)0X11f3), - CommandWriteBuffer = ((int)0X11f4), - CommandCopyBuffer = ((int)0X11f5), - CommandReadImage = ((int)0X11f6), - CommandWriteImage = ((int)0X11f7), - CommandCopyImage = ((int)0X11f8), - CommandCopyImageToBuffer = ((int)0X11f9), - CommandCopyBufferToImage = ((int)0X11fa), - CommandMapBuffer = ((int)0X11fb), - CommandMapImage = ((int)0X11fc), - CommandUnmapMemObject = ((int)0X11fd), - CommandMarker = ((int)0X11fe), - CommandAcquireGlObjects = ((int)0X11ff), - CommandReleaseGlObjects = ((int)0X1200), - } - - public enum ContextInfo - { - ContextReferenceCount = ((int)0X1080), - ContextDevices = ((int)0X1081), - ContextProperties = ((int)0X1082), - } - - public enum ContextProperties - { - ContextPlatform = ((int)0X1084), - } - - public enum DeviceExecCapabilitiesFlags - { - ExecKernel = ((int)(1 << 0)), - ExecNativeKernel = ((int)(1 << 1)), - } - - public enum DeviceFpConfigFlags - { - FpDenorm = ((int)(1 << 0)), - FpInfNan = ((int)(1 << 1)), - FpRoundToNearest = ((int)(1 << 2)), - FpRoundToZero = ((int)(1 << 3)), - FpRoundToInf = ((int)(1 << 4)), - FpFma = ((int)(1 << 5)), - } - - public enum DeviceInfo - { - DeviceType = ((int)0X1000), - DeviceVendorId = ((int)0X1001), - DeviceMaxComputeUnits = ((int)0X1002), - DeviceMaxWorkItemDimensions = ((int)0X1003), - DeviceMaxWorkGroupSize = ((int)0X1004), - DeviceMaxWorkItemSizes = ((int)0X1005), - DevicePreferredVectorWidthChar = ((int)0X1006), - DevicePreferredVectorWidthShort = ((int)0X1007), - DevicePreferredVectorWidthInt = ((int)0X1008), - DevicePreferredVectorWidthLong = ((int)0X1009), - DevicePreferredVectorWidthFloat = ((int)0X100a), - DevicePreferredVectorWidthDouble = ((int)0X100b), - DeviceMaxClockFrequency = ((int)0X100c), - DeviceAddressBits = ((int)0X100d), - DeviceMaxReadImageArgs = ((int)0X100e), - DeviceMaxWriteImageArgs = ((int)0X100f), - DeviceMaxMemAllocSize = ((int)0X1010), - DeviceImage2dMaxWidth = ((int)0X1011), - DeviceImage2dMaxHeight = ((int)0X1012), - DeviceImage3dMaxWidth = ((int)0X1013), - DeviceImage3dMaxHeight = ((int)0X1014), - DeviceImage3dMaxDepth = ((int)0X1015), - DeviceImageSupport = ((int)0X1016), - DeviceMaxParameterSize = ((int)0X1017), - DeviceMaxSamplers = ((int)0X1018), - DeviceMemBaseAddrAlign = ((int)0X1019), - DeviceMinDataTypeAlignSize = ((int)0X101a), - DeviceSingleFpConfig = ((int)0X101b), - DeviceGlobalMemCacheType = ((int)0X101c), - DeviceGlobalMemCachelineSize = ((int)0X101d), - DeviceGlobalMemCacheSize = ((int)0X101e), - DeviceGlobalMemSize = ((int)0X101f), - DeviceMaxConstantBufferSize = ((int)0X1020), - DeviceMaxConstantArgs = ((int)0X1021), - DeviceLocalMemType = ((int)0X1022), - DeviceLocalMemSize = ((int)0X1023), - DeviceErrorCorrectionSupport = ((int)0X1024), - DeviceProfilingTimerResolution = ((int)0X1025), - DeviceEndianLittle = ((int)0X1026), - DeviceAvailable = ((int)0X1027), - DeviceCompilerAvailable = ((int)0X1028), - DeviceExecutionCapabilities = ((int)0X1029), - DeviceQueueProperties = ((int)0X102a), - DeviceName = ((int)0X102b), - DeviceVendor = ((int)0X102c), - DriverVersion = ((int)0X102d), - DeviceProfile = ((int)0X102e), - DeviceVersion = ((int)0X102f), - DeviceExtensions = ((int)0X1030), - DevicePlatform = ((int)0X1031), - } - - public enum DeviceLocalMemType - { - Local = ((int)0X1), - Global = ((int)0X2), - } - - public enum DeviceMemCacheType - { - None = ((int)0X0), - ReadOnlyCache = ((int)0X1), - ReadWriteCache = ((int)0X2), - } - - public enum DeviceTypeFlags - { - DeviceTypeDefault = ((int)(1 << 0)), - DeviceTypeCpu = ((int)(1 << 1)), - DeviceTypeGpu = ((int)(1 << 2)), - DeviceTypeAccelerator = ((int)(1 << 3)), - DeviceTypeAll = unchecked((int)0Xffffffff), - } - - public enum ErrorCode - { - Success = ((int)0), - DeviceNotFound = ((int)-1), - ImageFormatNotSupported = ((int)-10), - BuildProgramFailure = ((int)-11), - MapFailure = ((int)-12), - DeviceNotAvailable = ((int)-2), - CompilerNotAvailable = ((int)-3), - InvalidValue = ((int)-30), - InvalidDeviceType = ((int)-31), - InvalidPlatform = ((int)-32), - InvalidDevice = ((int)-33), - InvalidContext = ((int)-34), - InvalidQueueProperties = ((int)-35), - InvalidCommandQueue = ((int)-36), - InvalidHostPtr = ((int)-37), - InvalidMemObject = ((int)-38), - InvalidImageFormatDescriptor = ((int)-39), - MemObjectAllocationFailure = ((int)-4), - InvalidImageSize = ((int)-40), - InvalidSampler = ((int)-41), - InvalidBinary = ((int)-42), - InvalidBuildOptions = ((int)-43), - InvalidProgram = ((int)-44), - InvalidProgramExecutable = ((int)-45), - InvalidKernelName = ((int)-46), - InvalidKernelDefinition = ((int)-47), - InvalidKernel = ((int)-48), - InvalidArgIndex = ((int)-49), - OutOfResources = ((int)-5), - InvalidArgValue = ((int)-50), - InvalidArgSize = ((int)-51), - InvalidKernelArgs = ((int)-52), - InvalidWorkDimension = ((int)-53), - InvalidWorkGroupSize = ((int)-54), - InvalidWorkItemSize = ((int)-55), - InvalidGlobalOffset = ((int)-56), - InvalidEventWaitList = ((int)-57), - InvalidEvent = ((int)-58), - InvalidOperation = ((int)-59), - OutOfHostMemory = ((int)-6), - InvalidGlObject = ((int)-60), - InvalidBufferSize = ((int)-61), - InvalidMipLevel = ((int)-62), - ProfilingInfoNotAvailable = ((int)-7), - MemCopyOverlap = ((int)-8), - ImageFormatMismatch = ((int)-9), - } - - public enum EventInfo - { - EventCommandQueue = ((int)0X11d0), - EventCommandType = ((int)0X11d1), - EventReferenceCount = ((int)0X11d2), - EventCommandExecutionStatus = ((int)0X11d3), - } - - public enum FilterMode - { - FilterNearest = ((int)0X1140), - FilterLinear = ((int)0X1141), - } - - public enum ImageInfo - { - ImageFormat = ((int)0X1110), - ImageElementSize = ((int)0X1111), - ImageRowPitch = ((int)0X1112), - ImageSlicePitch = ((int)0X1113), - ImageWidth = ((int)0X1114), - ImageHeight = ((int)0X1115), - ImageDepth = ((int)0X1116), - } - - public enum KernelInfo - { - KernelFunctionName = ((int)0X1190), - KernelNumArgs = ((int)0X1191), - KernelReferenceCount = ((int)0X1192), - KernelContext = ((int)0X1193), - KernelProgram = ((int)0X1194), - } - - public enum KernelWorkGroupInfo - { - KernelWorkGroupSize = ((int)0X11b0), - KernelCompileWorkGroupSize = ((int)0X11b1), - KernelLocalMemSize = ((int)0X11b2), - } - - public enum MapFlags - { - MapRead = ((int)(1 << 0)), - MapWrite = ((int)(1 << 1)), - } - - public enum MemFlags - { - MemReadWrite = ((int)(1 << 0)), - MemWriteOnly = ((int)(1 << 1)), - MemReadOnly = ((int)(1 << 2)), - MemUseHostPtr = ((int)(1 << 3)), - MemAllocHostPtr = ((int)(1 << 4)), - MemCopyHostPtr = ((int)(1 << 5)), - } - - public enum MemInfo - { - MemType = ((int)0X1100), - MemFlags = ((int)0X1101), - MemSize = ((int)0X1102), - MemHostPtr = ((int)0X1103), - MemMapCount = ((int)0X1104), - MemReferenceCount = ((int)0X1105), - MemContext = ((int)0X1106), - } - - public enum MemObjectType - { - MemObjectBuffer = ((int)0X10f0), - MemObjectImage2d = ((int)0X10f1), - MemObjectImage3d = ((int)0X10f2), - } - - public enum PlatformInfo - { - PlatformProfile = ((int)0X0900), - PlatformVersion = ((int)0X0901), - PlatformName = ((int)0X0902), - PlatformVendor = ((int)0X0903), - PlatformExtensions = ((int)0X0904), - } - - public enum ProfilingInfo - { - ProfilingCommandQueued = ((int)0X1280), - ProfilingCommandSubmit = ((int)0X1281), - ProfilingCommandStart = ((int)0X1282), - ProfilingCommandEnd = ((int)0X1283), - } - - public enum ProgramBuildInfo - { - ProgramBuildStatus = ((int)0X1181), - ProgramBuildOptions = ((int)0X1182), - ProgramBuildLog = ((int)0X1183), - } - - public enum ProgramInfo - { - ProgramReferenceCount = ((int)0X1160), - ProgramContext = ((int)0X1161), - ProgramNumDevices = ((int)0X1162), - ProgramDevices = ((int)0X1163), - ProgramSource = ((int)0X1164), - ProgramBinarySizes = ((int)0X1165), - ProgramBinaries = ((int)0X1166), - } - - public enum SamplerInfo - { - SamplerReferenceCount = ((int)0X1150), - SamplerContext = ((int)0X1151), - SamplerNormalizedCoords = ((int)0X1152), - SamplerAddressingMode = ((int)0X1153), - SamplerFilterMode = ((int)0X1154), - } - - public enum Unknown - { - ScharMin = ((int)(-127-1)), - IntMin = ((int)(-2147483647-1)), - ShrtMin = ((int)(-32767-1)), - UintMax = unchecked((int)0Xffffffff), - DblMinExp = ((int)-1021), - FltMinExp = ((int)-125), - ScharMax = ((int)127), - DblDig = ((int)15), - DblRadix = ((int)2), - FltRadix = ((int)2), - IntMax = unchecked((int)2147483647), - FltMantDig = ((int)24), - UcharMax = ((int)255), - DblMin10Exp = ((int)-307), - ShrtMax = ((int)32767), - FltMin10Exp = ((int)-37), - DblMantDig = ((int)53), - FltDig = ((int)6), - UshrtMax = ((int)65535), - CharBit = ((int)8), - } - - public enum Version - { - Version10 = ((int)1), - } - -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; + +namespace OpenTK.Compute.CL10 +{ + #pragma warning disable 1591 + + public enum AddressingMode + { + AddressNone = ((int)0X1130), + AddressClampToEdge = ((int)0X1131), + AddressClamp = ((int)0X1132), + AddressRepeat = ((int)0X1133), + } + + public enum All + { + DeviceTypeDefault = ((int)(1 << 0)), + ExecKernel = ((int)(1 << 0)), + FpDenorm = ((int)(1 << 0)), + MapRead = ((int)(1 << 0)), + MemReadWrite = ((int)(1 << 0)), + QueueOutOfOrderExecModeEnable = ((int)(1 << 0)), + DeviceTypeCpu = ((int)(1 << 1)), + ExecNativeKernel = ((int)(1 << 1)), + FpInfNan = ((int)(1 << 1)), + MapWrite = ((int)(1 << 1)), + MemWriteOnly = ((int)(1 << 1)), + QueueProfilingEnable = ((int)(1 << 1)), + DeviceTypeGpu = ((int)(1 << 2)), + FpRoundToNearest = ((int)(1 << 2)), + MemReadOnly = ((int)(1 << 2)), + DeviceTypeAccelerator = ((int)(1 << 3)), + FpRoundToZero = ((int)(1 << 3)), + MemUseHostPtr = ((int)(1 << 3)), + FpRoundToInf = ((int)(1 << 4)), + MemAllocHostPtr = ((int)(1 << 4)), + FpFma = ((int)(1 << 5)), + MemCopyHostPtr = ((int)(1 << 5)), + ScharMin = ((int)(-127-1)), + IntMin = ((int)(-2147483647-1)), + ShrtMin = ((int)(-32767-1)), + BuildSuccess = ((int)0), + False = ((int)0), + Success = ((int)0), + Complete = ((int)0X0), + None = ((int)0X0), + PlatformProfile = ((int)0X0900), + PlatformVersion = ((int)0X0901), + PlatformName = ((int)0X0902), + PlatformVendor = ((int)0X0903), + PlatformExtensions = ((int)0X0904), + Local = ((int)0X1), + ReadOnlyCache = ((int)0X1), + Running = ((int)0X1), + DeviceType = ((int)0X1000), + DeviceVendorId = ((int)0X1001), + DeviceMaxComputeUnits = ((int)0X1002), + DeviceMaxWorkItemDimensions = ((int)0X1003), + DeviceMaxWorkGroupSize = ((int)0X1004), + DeviceMaxWorkItemSizes = ((int)0X1005), + DevicePreferredVectorWidthChar = ((int)0X1006), + DevicePreferredVectorWidthShort = ((int)0X1007), + DevicePreferredVectorWidthInt = ((int)0X1008), + DevicePreferredVectorWidthLong = ((int)0X1009), + DevicePreferredVectorWidthFloat = ((int)0X100a), + DevicePreferredVectorWidthDouble = ((int)0X100b), + DeviceMaxClockFrequency = ((int)0X100c), + DeviceAddressBits = ((int)0X100d), + DeviceMaxReadImageArgs = ((int)0X100e), + DeviceMaxWriteImageArgs = ((int)0X100f), + DeviceMaxMemAllocSize = ((int)0X1010), + DeviceImage2dMaxWidth = ((int)0X1011), + DeviceImage2dMaxHeight = ((int)0X1012), + DeviceImage3dMaxWidth = ((int)0X1013), + DeviceImage3dMaxHeight = ((int)0X1014), + DeviceImage3dMaxDepth = ((int)0X1015), + DeviceImageSupport = ((int)0X1016), + DeviceMaxParameterSize = ((int)0X1017), + DeviceMaxSamplers = ((int)0X1018), + DeviceMemBaseAddrAlign = ((int)0X1019), + DeviceMinDataTypeAlignSize = ((int)0X101a), + DeviceSingleFpConfig = ((int)0X101b), + DeviceGlobalMemCacheType = ((int)0X101c), + DeviceGlobalMemCachelineSize = ((int)0X101d), + DeviceGlobalMemCacheSize = ((int)0X101e), + DeviceGlobalMemSize = ((int)0X101f), + DeviceMaxConstantBufferSize = ((int)0X1020), + DeviceMaxConstantArgs = ((int)0X1021), + DeviceLocalMemType = ((int)0X1022), + DeviceLocalMemSize = ((int)0X1023), + DeviceErrorCorrectionSupport = ((int)0X1024), + DeviceProfilingTimerResolution = ((int)0X1025), + DeviceEndianLittle = ((int)0X1026), + DeviceAvailable = ((int)0X1027), + DeviceCompilerAvailable = ((int)0X1028), + DeviceExecutionCapabilities = ((int)0X1029), + DeviceQueueProperties = ((int)0X102a), + DeviceName = ((int)0X102b), + DeviceVendor = ((int)0X102c), + DriverVersion = ((int)0X102d), + DeviceProfile = ((int)0X102e), + DeviceVersion = ((int)0X102f), + DeviceExtensions = ((int)0X1030), + DevicePlatform = ((int)0X1031), + ContextReferenceCount = ((int)0X1080), + ContextDevices = ((int)0X1081), + ContextProperties = ((int)0X1082), + ContextPlatform = ((int)0X1084), + QueueContext = ((int)0X1090), + QueueDevice = ((int)0X1091), + QueueReferenceCount = ((int)0X1092), + QueueProperties = ((int)0X1093), + R = ((int)0X10b0), + A = ((int)0X10b1), + Rg = ((int)0X10b2), + Ra = ((int)0X10b3), + Rgb = ((int)0X10b4), + Rgba = ((int)0X10b5), + Bgra = ((int)0X10b6), + Argb = ((int)0X10b7), + Intensity = ((int)0X10b8), + Luminance = ((int)0X10b9), + SnormInt8 = ((int)0X10d0), + SnormInt16 = ((int)0X10d1), + UnormInt8 = ((int)0X10d2), + UnormInt16 = ((int)0X10d3), + UnormShort565 = ((int)0X10d4), + UnormShort555 = ((int)0X10d5), + UnormInt101010 = ((int)0X10d6), + SignedInt8 = ((int)0X10d7), + SignedInt16 = ((int)0X10d8), + SignedInt32 = ((int)0X10d9), + UnsignedInt8 = ((int)0X10da), + UnsignedInt16 = ((int)0X10db), + UnsignedInt32 = ((int)0X10dc), + HalfFloat = ((int)0X10dd), + Float = ((int)0X10de), + MemObjectBuffer = ((int)0X10f0), + MemObjectImage2d = ((int)0X10f1), + MemObjectImage3d = ((int)0X10f2), + MemType = ((int)0X1100), + MemFlags = ((int)0X1101), + MemSize = ((int)0X1102), + MemHostPtr = ((int)0X1103), + MemMapCount = ((int)0X1104), + MemReferenceCount = ((int)0X1105), + MemContext = ((int)0X1106), + ImageFormat = ((int)0X1110), + ImageElementSize = ((int)0X1111), + ImageRowPitch = ((int)0X1112), + ImageSlicePitch = ((int)0X1113), + ImageWidth = ((int)0X1114), + ImageHeight = ((int)0X1115), + ImageDepth = ((int)0X1116), + AddressNone = ((int)0X1130), + AddressClampToEdge = ((int)0X1131), + AddressClamp = ((int)0X1132), + AddressRepeat = ((int)0X1133), + FilterNearest = ((int)0X1140), + FilterLinear = ((int)0X1141), + SamplerReferenceCount = ((int)0X1150), + SamplerContext = ((int)0X1151), + SamplerNormalizedCoords = ((int)0X1152), + SamplerAddressingMode = ((int)0X1153), + SamplerFilterMode = ((int)0X1154), + ProgramReferenceCount = ((int)0X1160), + ProgramContext = ((int)0X1161), + ProgramNumDevices = ((int)0X1162), + ProgramDevices = ((int)0X1163), + ProgramSource = ((int)0X1164), + ProgramBinarySizes = ((int)0X1165), + ProgramBinaries = ((int)0X1166), + ProgramBuildStatus = ((int)0X1181), + ProgramBuildOptions = ((int)0X1182), + ProgramBuildLog = ((int)0X1183), + KernelFunctionName = ((int)0X1190), + KernelNumArgs = ((int)0X1191), + KernelReferenceCount = ((int)0X1192), + KernelContext = ((int)0X1193), + KernelProgram = ((int)0X1194), + KernelWorkGroupSize = ((int)0X11b0), + KernelCompileWorkGroupSize = ((int)0X11b1), + KernelLocalMemSize = ((int)0X11b2), + EventCommandQueue = ((int)0X11d0), + EventCommandType = ((int)0X11d1), + EventReferenceCount = ((int)0X11d2), + EventCommandExecutionStatus = ((int)0X11d3), + CommandNdrangeKernel = ((int)0X11f0), + CommandTask = ((int)0X11f1), + CommandNativeKernel = ((int)0X11f2), + CommandReadBuffer = ((int)0X11f3), + CommandWriteBuffer = ((int)0X11f4), + CommandCopyBuffer = ((int)0X11f5), + CommandReadImage = ((int)0X11f6), + CommandWriteImage = ((int)0X11f7), + CommandCopyImage = ((int)0X11f8), + CommandCopyImageToBuffer = ((int)0X11f9), + CommandCopyBufferToImage = ((int)0X11fa), + CommandMapBuffer = ((int)0X11fb), + CommandMapImage = ((int)0X11fc), + CommandUnmapMemObject = ((int)0X11fd), + CommandMarker = ((int)0X11fe), + CommandAcquireGlObjects = ((int)0X11ff), + CommandReleaseGlObjects = ((int)0X1200), + ProfilingCommandQueued = ((int)0X1280), + ProfilingCommandSubmit = ((int)0X1281), + ProfilingCommandStart = ((int)0X1282), + ProfilingCommandEnd = ((int)0X1283), + Global = ((int)0X2), + ReadWriteCache = ((int)0X2), + Submitted = ((int)0X2), + Queued = ((int)0X3), + DeviceTypeAll = unchecked((int)0Xffffffff), + UintMax = unchecked((int)0Xffffffff), + True = ((int)1), + Version10 = ((int)1), + BuildNone = ((int)-1), + DeviceNotFound = ((int)-1), + ImageFormatNotSupported = ((int)-10), + DblMinExp = ((int)-1021), + BuildProgramFailure = ((int)-11), + MapFailure = ((int)-12), + FltMinExp = ((int)-125), + ScharMax = ((int)127), + DblDig = ((int)15), + DblRadix = ((int)2), + FltRadix = ((int)2), + BuildError = ((int)-2), + DeviceNotAvailable = ((int)-2), + IntMax = unchecked((int)2147483647), + FltMantDig = ((int)24), + UcharMax = ((int)255), + BuildInProgress = ((int)-3), + CompilerNotAvailable = ((int)-3), + InvalidValue = ((int)-30), + DblMin10Exp = ((int)-307), + InvalidDeviceType = ((int)-31), + InvalidPlatform = ((int)-32), + ShrtMax = ((int)32767), + InvalidDevice = ((int)-33), + InvalidContext = ((int)-34), + InvalidQueueProperties = ((int)-35), + InvalidCommandQueue = ((int)-36), + FltMin10Exp = ((int)-37), + InvalidHostPtr = ((int)-37), + InvalidMemObject = ((int)-38), + InvalidImageFormatDescriptor = ((int)-39), + MemObjectAllocationFailure = ((int)-4), + InvalidImageSize = ((int)-40), + InvalidSampler = ((int)-41), + InvalidBinary = ((int)-42), + InvalidBuildOptions = ((int)-43), + InvalidProgram = ((int)-44), + InvalidProgramExecutable = ((int)-45), + InvalidKernelName = ((int)-46), + InvalidKernelDefinition = ((int)-47), + InvalidKernel = ((int)-48), + InvalidArgIndex = ((int)-49), + OutOfResources = ((int)-5), + InvalidArgValue = ((int)-50), + InvalidArgSize = ((int)-51), + InvalidKernelArgs = ((int)-52), + DblMantDig = ((int)53), + InvalidWorkDimension = ((int)-53), + InvalidWorkGroupSize = ((int)-54), + InvalidWorkItemSize = ((int)-55), + InvalidGlobalOffset = ((int)-56), + InvalidEventWaitList = ((int)-57), + InvalidEvent = ((int)-58), + InvalidOperation = ((int)-59), + FltDig = ((int)6), + OutOfHostMemory = ((int)-6), + InvalidGlObject = ((int)-60), + InvalidBufferSize = ((int)-61), + InvalidMipLevel = ((int)-62), + UshrtMax = ((int)65535), + ProfilingInfoNotAvailable = ((int)-7), + CharBit = ((int)8), + MemCopyOverlap = ((int)-8), + ImageFormatMismatch = ((int)-9), + } + + public enum Bool + { + False = ((int)0), + True = ((int)1), + } + + public enum BuildStatus + { + BuildSuccess = ((int)0), + BuildNone = ((int)-1), + BuildError = ((int)-2), + BuildInProgress = ((int)-3), + } + + public enum ChannelOrder + { + R = ((int)0X10b0), + A = ((int)0X10b1), + Rg = ((int)0X10b2), + Ra = ((int)0X10b3), + Rgb = ((int)0X10b4), + Rgba = ((int)0X10b5), + Bgra = ((int)0X10b6), + Argb = ((int)0X10b7), + Intensity = ((int)0X10b8), + Luminance = ((int)0X10b9), + } + + public enum ChannelType + { + SnormInt8 = ((int)0X10d0), + SnormInt16 = ((int)0X10d1), + UnormInt8 = ((int)0X10d2), + UnormInt16 = ((int)0X10d3), + UnormShort565 = ((int)0X10d4), + UnormShort555 = ((int)0X10d5), + UnormInt101010 = ((int)0X10d6), + SignedInt8 = ((int)0X10d7), + SignedInt16 = ((int)0X10d8), + SignedInt32 = ((int)0X10d9), + UnsignedInt8 = ((int)0X10da), + UnsignedInt16 = ((int)0X10db), + UnsignedInt32 = ((int)0X10dc), + HalfFloat = ((int)0X10dd), + Float = ((int)0X10de), + } + + public enum CommandExecutionStatus + { + Complete = ((int)0X0), + Running = ((int)0X1), + Submitted = ((int)0X2), + Queued = ((int)0X3), + } + + public enum CommandQueueFlags + { + QueueOutOfOrderExecModeEnable = ((int)(1 << 0)), + QueueProfilingEnable = ((int)(1 << 1)), + } + + public enum CommandQueueInfo + { + QueueContext = ((int)0X1090), + QueueDevice = ((int)0X1091), + QueueReferenceCount = ((int)0X1092), + QueueProperties = ((int)0X1093), + } + + public enum CommandType + { + CommandNdrangeKernel = ((int)0X11f0), + CommandTask = ((int)0X11f1), + CommandNativeKernel = ((int)0X11f2), + CommandReadBuffer = ((int)0X11f3), + CommandWriteBuffer = ((int)0X11f4), + CommandCopyBuffer = ((int)0X11f5), + CommandReadImage = ((int)0X11f6), + CommandWriteImage = ((int)0X11f7), + CommandCopyImage = ((int)0X11f8), + CommandCopyImageToBuffer = ((int)0X11f9), + CommandCopyBufferToImage = ((int)0X11fa), + CommandMapBuffer = ((int)0X11fb), + CommandMapImage = ((int)0X11fc), + CommandUnmapMemObject = ((int)0X11fd), + CommandMarker = ((int)0X11fe), + CommandAcquireGlObjects = ((int)0X11ff), + CommandReleaseGlObjects = ((int)0X1200), + } + + public enum ContextInfo + { + ContextReferenceCount = ((int)0X1080), + ContextDevices = ((int)0X1081), + ContextProperties = ((int)0X1082), + } + + public enum ContextProperties + { + ContextPlatform = ((int)0X1084), + } + + public enum DeviceExecCapabilitiesFlags + { + ExecKernel = ((int)(1 << 0)), + ExecNativeKernel = ((int)(1 << 1)), + } + + public enum DeviceFpConfigFlags + { + FpDenorm = ((int)(1 << 0)), + FpInfNan = ((int)(1 << 1)), + FpRoundToNearest = ((int)(1 << 2)), + FpRoundToZero = ((int)(1 << 3)), + FpRoundToInf = ((int)(1 << 4)), + FpFma = ((int)(1 << 5)), + } + + public enum DeviceInfo + { + DeviceType = ((int)0X1000), + DeviceVendorId = ((int)0X1001), + DeviceMaxComputeUnits = ((int)0X1002), + DeviceMaxWorkItemDimensions = ((int)0X1003), + DeviceMaxWorkGroupSize = ((int)0X1004), + DeviceMaxWorkItemSizes = ((int)0X1005), + DevicePreferredVectorWidthChar = ((int)0X1006), + DevicePreferredVectorWidthShort = ((int)0X1007), + DevicePreferredVectorWidthInt = ((int)0X1008), + DevicePreferredVectorWidthLong = ((int)0X1009), + DevicePreferredVectorWidthFloat = ((int)0X100a), + DevicePreferredVectorWidthDouble = ((int)0X100b), + DeviceMaxClockFrequency = ((int)0X100c), + DeviceAddressBits = ((int)0X100d), + DeviceMaxReadImageArgs = ((int)0X100e), + DeviceMaxWriteImageArgs = ((int)0X100f), + DeviceMaxMemAllocSize = ((int)0X1010), + DeviceImage2dMaxWidth = ((int)0X1011), + DeviceImage2dMaxHeight = ((int)0X1012), + DeviceImage3dMaxWidth = ((int)0X1013), + DeviceImage3dMaxHeight = ((int)0X1014), + DeviceImage3dMaxDepth = ((int)0X1015), + DeviceImageSupport = ((int)0X1016), + DeviceMaxParameterSize = ((int)0X1017), + DeviceMaxSamplers = ((int)0X1018), + DeviceMemBaseAddrAlign = ((int)0X1019), + DeviceMinDataTypeAlignSize = ((int)0X101a), + DeviceSingleFpConfig = ((int)0X101b), + DeviceGlobalMemCacheType = ((int)0X101c), + DeviceGlobalMemCachelineSize = ((int)0X101d), + DeviceGlobalMemCacheSize = ((int)0X101e), + DeviceGlobalMemSize = ((int)0X101f), + DeviceMaxConstantBufferSize = ((int)0X1020), + DeviceMaxConstantArgs = ((int)0X1021), + DeviceLocalMemType = ((int)0X1022), + DeviceLocalMemSize = ((int)0X1023), + DeviceErrorCorrectionSupport = ((int)0X1024), + DeviceProfilingTimerResolution = ((int)0X1025), + DeviceEndianLittle = ((int)0X1026), + DeviceAvailable = ((int)0X1027), + DeviceCompilerAvailable = ((int)0X1028), + DeviceExecutionCapabilities = ((int)0X1029), + DeviceQueueProperties = ((int)0X102a), + DeviceName = ((int)0X102b), + DeviceVendor = ((int)0X102c), + DriverVersion = ((int)0X102d), + DeviceProfile = ((int)0X102e), + DeviceVersion = ((int)0X102f), + DeviceExtensions = ((int)0X1030), + DevicePlatform = ((int)0X1031), + } + + public enum DeviceLocalMemType + { + Local = ((int)0X1), + Global = ((int)0X2), + } + + public enum DeviceMemCacheType + { + None = ((int)0X0), + ReadOnlyCache = ((int)0X1), + ReadWriteCache = ((int)0X2), + } + + public enum DeviceTypeFlags + { + DeviceTypeDefault = ((int)(1 << 0)), + DeviceTypeCpu = ((int)(1 << 1)), + DeviceTypeGpu = ((int)(1 << 2)), + DeviceTypeAccelerator = ((int)(1 << 3)), + DeviceTypeAll = unchecked((int)0Xffffffff), + } + + public enum ErrorCode + { + Success = ((int)0), + DeviceNotFound = ((int)-1), + ImageFormatNotSupported = ((int)-10), + BuildProgramFailure = ((int)-11), + MapFailure = ((int)-12), + DeviceNotAvailable = ((int)-2), + CompilerNotAvailable = ((int)-3), + InvalidValue = ((int)-30), + InvalidDeviceType = ((int)-31), + InvalidPlatform = ((int)-32), + InvalidDevice = ((int)-33), + InvalidContext = ((int)-34), + InvalidQueueProperties = ((int)-35), + InvalidCommandQueue = ((int)-36), + InvalidHostPtr = ((int)-37), + InvalidMemObject = ((int)-38), + InvalidImageFormatDescriptor = ((int)-39), + MemObjectAllocationFailure = ((int)-4), + InvalidImageSize = ((int)-40), + InvalidSampler = ((int)-41), + InvalidBinary = ((int)-42), + InvalidBuildOptions = ((int)-43), + InvalidProgram = ((int)-44), + InvalidProgramExecutable = ((int)-45), + InvalidKernelName = ((int)-46), + InvalidKernelDefinition = ((int)-47), + InvalidKernel = ((int)-48), + InvalidArgIndex = ((int)-49), + OutOfResources = ((int)-5), + InvalidArgValue = ((int)-50), + InvalidArgSize = ((int)-51), + InvalidKernelArgs = ((int)-52), + InvalidWorkDimension = ((int)-53), + InvalidWorkGroupSize = ((int)-54), + InvalidWorkItemSize = ((int)-55), + InvalidGlobalOffset = ((int)-56), + InvalidEventWaitList = ((int)-57), + InvalidEvent = ((int)-58), + InvalidOperation = ((int)-59), + OutOfHostMemory = ((int)-6), + InvalidGlObject = ((int)-60), + InvalidBufferSize = ((int)-61), + InvalidMipLevel = ((int)-62), + ProfilingInfoNotAvailable = ((int)-7), + MemCopyOverlap = ((int)-8), + ImageFormatMismatch = ((int)-9), + } + + public enum EventInfo + { + EventCommandQueue = ((int)0X11d0), + EventCommandType = ((int)0X11d1), + EventReferenceCount = ((int)0X11d2), + EventCommandExecutionStatus = ((int)0X11d3), + } + + public enum FilterMode + { + FilterNearest = ((int)0X1140), + FilterLinear = ((int)0X1141), + } + + public enum ImageInfo + { + ImageFormat = ((int)0X1110), + ImageElementSize = ((int)0X1111), + ImageRowPitch = ((int)0X1112), + ImageSlicePitch = ((int)0X1113), + ImageWidth = ((int)0X1114), + ImageHeight = ((int)0X1115), + ImageDepth = ((int)0X1116), + } + + public enum KernelInfo + { + KernelFunctionName = ((int)0X1190), + KernelNumArgs = ((int)0X1191), + KernelReferenceCount = ((int)0X1192), + KernelContext = ((int)0X1193), + KernelProgram = ((int)0X1194), + } + + public enum KernelWorkGroupInfo + { + KernelWorkGroupSize = ((int)0X11b0), + KernelCompileWorkGroupSize = ((int)0X11b1), + KernelLocalMemSize = ((int)0X11b2), + } + + public enum MapFlags + { + MapRead = ((int)(1 << 0)), + MapWrite = ((int)(1 << 1)), + } + + public enum MemFlags + { + MemReadWrite = ((int)(1 << 0)), + MemWriteOnly = ((int)(1 << 1)), + MemReadOnly = ((int)(1 << 2)), + MemUseHostPtr = ((int)(1 << 3)), + MemAllocHostPtr = ((int)(1 << 4)), + MemCopyHostPtr = ((int)(1 << 5)), + } + + public enum MemInfo + { + MemType = ((int)0X1100), + MemFlags = ((int)0X1101), + MemSize = ((int)0X1102), + MemHostPtr = ((int)0X1103), + MemMapCount = ((int)0X1104), + MemReferenceCount = ((int)0X1105), + MemContext = ((int)0X1106), + } + + public enum MemObjectType + { + MemObjectBuffer = ((int)0X10f0), + MemObjectImage2d = ((int)0X10f1), + MemObjectImage3d = ((int)0X10f2), + } + + public enum PlatformInfo + { + PlatformProfile = ((int)0X0900), + PlatformVersion = ((int)0X0901), + PlatformName = ((int)0X0902), + PlatformVendor = ((int)0X0903), + PlatformExtensions = ((int)0X0904), + } + + public enum ProfilingInfo + { + ProfilingCommandQueued = ((int)0X1280), + ProfilingCommandSubmit = ((int)0X1281), + ProfilingCommandStart = ((int)0X1282), + ProfilingCommandEnd = ((int)0X1283), + } + + public enum ProgramBuildInfo + { + ProgramBuildStatus = ((int)0X1181), + ProgramBuildOptions = ((int)0X1182), + ProgramBuildLog = ((int)0X1183), + } + + public enum ProgramInfo + { + ProgramReferenceCount = ((int)0X1160), + ProgramContext = ((int)0X1161), + ProgramNumDevices = ((int)0X1162), + ProgramDevices = ((int)0X1163), + ProgramSource = ((int)0X1164), + ProgramBinarySizes = ((int)0X1165), + ProgramBinaries = ((int)0X1166), + } + + public enum SamplerInfo + { + SamplerReferenceCount = ((int)0X1150), + SamplerContext = ((int)0X1151), + SamplerNormalizedCoords = ((int)0X1152), + SamplerAddressingMode = ((int)0X1153), + SamplerFilterMode = ((int)0X1154), + } + + public enum Unknown + { + ScharMin = ((int)(-127-1)), + IntMin = ((int)(-2147483647-1)), + ShrtMin = ((int)(-32767-1)), + UintMax = unchecked((int)0Xffffffff), + DblMinExp = ((int)-1021), + FltMinExp = ((int)-125), + ScharMax = ((int)127), + DblDig = ((int)15), + DblRadix = ((int)2), + FltRadix = ((int)2), + IntMax = unchecked((int)2147483647), + FltMantDig = ((int)24), + UcharMax = ((int)255), + DblMin10Exp = ((int)-307), + ShrtMax = ((int)32767), + FltMin10Exp = ((int)-37), + DblMantDig = ((int)53), + FltDig = ((int)6), + UshrtMax = ((int)65535), + CharBit = ((int)8), + } + + public enum Version + { + Version10 = ((int)1), + } + +}