opencl

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package opencl provides a fluent Go API over the macOS OpenCL framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClBuildProgram

func ClBuildProgram(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 string, arg5 unsafe.Pointer, arg6 unsafe.Pointer) int32

ClBuildProgram calls the OpenCL framework function clBuildProgram.

func ClCompileProgram

func ClCompileProgram(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 string, arg5 uint32, arg6 unsafe.Pointer, arg7 string, arg8 unsafe.Pointer, arg9 unsafe.Pointer) int32

ClCompileProgram calls the OpenCL framework function clCompileProgram.

func ClCreateBuffer

func ClCreateBuffer(arg obj.Object, arg2 uint64, arg3 int, arg4 unsafe.Pointer) (result obj.Object, arg5 int32)

ClCreateBuffer calls the OpenCL framework function clCreateBuffer.

func ClCreateCommandQueue

func ClCreateCommandQueue(arg obj.Object, arg2 obj.Object, arg3 uint64) (result obj.Object, arg4 int32)

ClCreateCommandQueue calls the OpenCL framework function clCreateCommandQueue.

func ClCreateCommandQueueWithPropertiesAPPLE

func ClCreateCommandQueueWithPropertiesAPPLE(arg obj.Object, arg2 obj.Object) (result obj.Object, arg3 int, arg4 int32)

ClCreateCommandQueueWithPropertiesAPPLE calls the OpenCL framework function clCreateCommandQueueWithPropertiesAPPLE.

func ClCreateContext

func ClCreateContext(arg2 uint32, arg3 unsafe.Pointer, arg4 unsafe.Pointer, arg5 unsafe.Pointer) (result obj.Object, arg int, arg6 int32)

ClCreateContext calls the OpenCL framework function clCreateContext.

func ClCreateContextAndCommandQueueAPPLE

func ClCreateContextAndCommandQueueAPPLE(arg2 uint32, arg3 unsafe.Pointer, arg4 unsafe.Pointer, arg5 unsafe.Pointer, arg6 uint64, arg7 unsafe.Pointer, arg8 unsafe.Pointer) (result int32, arg int)

ClCreateContextAndCommandQueueAPPLE calls the OpenCL framework function clCreateContextAndCommandQueueAPPLE.

func ClCreateContextFromType

func ClCreateContextFromType(arg2 uint64, arg3 unsafe.Pointer, arg4 unsafe.Pointer) (result obj.Object, arg int, arg5 int32)

ClCreateContextFromType calls the OpenCL framework function clCreateContextFromType.

func ClCreateDAGAPPLE

func ClCreateDAGAPPLE(c obj.Object) obj.Object

ClCreateDAGAPPLE calls the OpenCL framework function clCreateDAGAPPLE.

func ClCreateEventFromGLsyncKHR

func ClCreateEventFromGLsyncKHR(arg obj.Object, arg2 obj.Object) (result obj.Object, arg3 int32)

ClCreateEventFromGLsyncKHR calls the OpenCL framework function clCreateEventFromGLsyncKHR.

func ClCreateFromGLBuffer

func ClCreateFromGLBuffer(arg obj.Object, arg2 uint64, arg3 int) (result obj.Object, arg4 int32)

ClCreateFromGLBuffer calls the OpenCL framework function clCreateFromGLBuffer.

func ClCreateFromGLRenderbuffer

func ClCreateFromGLRenderbuffer(arg obj.Object, arg2 uint64, arg3 int) (result obj.Object, arg4 int32)

ClCreateFromGLRenderbuffer calls the OpenCL framework function clCreateFromGLRenderbuffer.

func ClCreateFromGLTexture

func ClCreateFromGLTexture(arg obj.Object, arg2 uint64, arg3 int, arg4 int, arg5 int) (result obj.Object, arg6 int32)

ClCreateFromGLTexture calls the OpenCL framework function clCreateFromGLTexture.

func ClCreateFromGLTexture2D

func ClCreateFromGLTexture2D(arg obj.Object, arg2 uint64, arg3 int, arg4 int, arg5 int) (result obj.Object, arg6 int32)

ClCreateFromGLTexture2D calls the OpenCL framework function clCreateFromGLTexture2D.

func ClCreateFromGLTexture3D

func ClCreateFromGLTexture3D(arg obj.Object, arg2 uint64, arg3 int, arg4 int, arg5 int) (result obj.Object, arg6 int32)

ClCreateFromGLTexture3D calls the OpenCL framework function clCreateFromGLTexture3D.

func ClCreateKernel

func ClCreateKernel(arg obj.Object, arg2 string) (result obj.Object, arg3 int32)

ClCreateKernel calls the OpenCL framework function clCreateKernel.

func ClCreateKernelFromDAGAPPLE

func ClCreateKernelFromDAGAPPLE(d obj.Object, n uint32, list unsafe.Pointer) obj.Object

ClCreateKernelFromDAGAPPLE calls the OpenCL framework function clCreateKernelFromDAGAPPLE.

func ClCreateKernelsInProgram

func ClCreateKernelsInProgram(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer) (result int32, arg4 uint32)

ClCreateKernelsInProgram calls the OpenCL framework function clCreateKernelsInProgram.

func ClCreateProgramAndKernelsWithSourceAPPLE

func ClCreateProgramAndKernelsWithSourceAPPLE(arg obj.Object, arg2 uint32, arg3 string, arg5 uint32, arg6 unsafe.Pointer, arg7 string, arg8 uint32, arg9 string, arg10 unsafe.Pointer, arg11 unsafe.Pointer) (result int32, arg4 int)

ClCreateProgramAndKernelsWithSourceAPPLE calls the OpenCL framework function clCreateProgramAndKernelsWithSourceAPPLE.

func ClCreateProgramWithBinary

func ClCreateProgramWithBinary(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg5 unsafe.Pointer) (result obj.Object, arg4 int, arg6 int32, arg7 int32)

ClCreateProgramWithBinary calls the OpenCL framework function clCreateProgramWithBinary.

func ClCreateProgramWithBuiltInKernels

func ClCreateProgramWithBuiltInKernels(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 string) (result obj.Object, arg5 int32)

ClCreateProgramWithBuiltInKernels calls the OpenCL framework function clCreateProgramWithBuiltInKernels.

func ClCreateProgramWithSource

func ClCreateProgramWithSource(arg obj.Object, arg2 uint32, arg3 string) (result obj.Object, arg4 int, arg5 int32)

ClCreateProgramWithSource calls the OpenCL framework function clCreateProgramWithSource.

func ClCreateSampler

func ClCreateSampler(arg obj.Object, arg2 uint32, arg3 uint32, arg4 uint32) (result obj.Object, arg5 int32)

ClCreateSampler calls the OpenCL framework function clCreateSampler.

func ClCreateSubBuffer

func ClCreateSubBuffer(arg obj.Object, arg2 uint64, arg3 uint32, arg4 unsafe.Pointer) (result obj.Object, arg5 int32)

ClCreateSubBuffer calls the OpenCL framework function clCreateSubBuffer.

func ClCreateSubDevices

func ClCreateSubDevices(arg obj.Object, arg3 uint32, arg4 unsafe.Pointer) (result int32, arg2 int, arg5 uint32)

ClCreateSubDevices calls the OpenCL framework function clCreateSubDevices.

func ClCreateUserEvent

func ClCreateUserEvent(arg obj.Object) (result obj.Object, arg2 int32)

ClCreateUserEvent calls the OpenCL framework function clCreateUserEvent.

func ClEnqueueAcquireGLObjects

func ClEnqueueAcquireGLObjects(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 uint32, arg5 unsafe.Pointer, arg6 unsafe.Pointer) int32

ClEnqueueAcquireGLObjects calls the OpenCL framework function clEnqueueAcquireGLObjects.

func ClEnqueueBarrier

func ClEnqueueBarrier(arg obj.Object) int32

ClEnqueueBarrier calls the OpenCL framework function clEnqueueBarrier.

func ClEnqueueBarrierWithWaitList

func ClEnqueueBarrierWithWaitList(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 unsafe.Pointer) int32

ClEnqueueBarrierWithWaitList calls the OpenCL framework function clEnqueueBarrierWithWaitList.

func ClEnqueueCopyBuffer

func ClEnqueueCopyBuffer(arg obj.Object, arg2 obj.Object, arg3 obj.Object, arg4 int, arg5 int, arg6 int, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) int32

ClEnqueueCopyBuffer calls the OpenCL framework function clEnqueueCopyBuffer.

func ClEnqueueCopyBufferRect

func ClEnqueueCopyBufferRect(arg obj.Object, arg2 obj.Object, arg3 obj.Object, arg7 int, arg8 int, arg9 int, arg10 int, arg11 uint32, arg12 unsafe.Pointer, arg13 unsafe.Pointer) (result int32, arg4 int, arg5 int, arg6 int)

ClEnqueueCopyBufferRect calls the OpenCL framework function clEnqueueCopyBufferRect.

func ClEnqueueCopyBufferToImage

func ClEnqueueCopyBufferToImage(arg obj.Object, arg2 obj.Object, arg3 obj.Object, arg4 int, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) (result int32, arg5 int, arg6 int)

ClEnqueueCopyBufferToImage calls the OpenCL framework function clEnqueueCopyBufferToImage.

func ClEnqueueCopyImage

func ClEnqueueCopyImage(arg obj.Object, arg2 obj.Object, arg3 obj.Object, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) (result int32, arg4 int, arg5 int, arg6 int)

ClEnqueueCopyImage calls the OpenCL framework function clEnqueueCopyImage.

func ClEnqueueCopyImageToBuffer

func ClEnqueueCopyImageToBuffer(arg obj.Object, arg2 obj.Object, arg3 obj.Object, arg6 int, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) (result int32, arg4 int, arg5 int)

ClEnqueueCopyImageToBuffer calls the OpenCL framework function clEnqueueCopyImageToBuffer.

func ClEnqueueFillBuffer

func ClEnqueueFillBuffer(arg obj.Object, arg2 obj.Object, arg3 unsafe.Pointer, arg4 int, arg5 int, arg6 int, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) int32

ClEnqueueFillBuffer calls the OpenCL framework function clEnqueueFillBuffer.

func ClEnqueueFillImage

func ClEnqueueFillImage(arg obj.Object, arg2 obj.Object, arg3 unsafe.Pointer, arg6 uint32, arg7 unsafe.Pointer, arg8 unsafe.Pointer) (result int32, arg4 int, arg5 int)

ClEnqueueFillImage calls the OpenCL framework function clEnqueueFillImage.

func ClEnqueueMapBuffer

func ClEnqueueMapBuffer(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 uint64, arg5 int, arg6 int, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) (result unsafe.Pointer, arg10 int32)

ClEnqueueMapBuffer calls the OpenCL framework function clEnqueueMapBuffer.

func ClEnqueueMapImage

func ClEnqueueMapImage(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 uint64, arg9 uint32, arg10 unsafe.Pointer, arg11 unsafe.Pointer) (result unsafe.Pointer, arg5 int, arg6 int, arg7 int, arg8 int, arg12 int32)

ClEnqueueMapImage calls the OpenCL framework function clEnqueueMapImage.

func ClEnqueueMarker

func ClEnqueueMarker(arg obj.Object, arg2 unsafe.Pointer) int32

ClEnqueueMarker calls the OpenCL framework function clEnqueueMarker.

func ClEnqueueMarkerWithWaitList

func ClEnqueueMarkerWithWaitList(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 unsafe.Pointer) int32

ClEnqueueMarkerWithWaitList calls the OpenCL framework function clEnqueueMarkerWithWaitList.

func ClEnqueueMigrateMemObjects

func ClEnqueueMigrateMemObjects(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 uint64, arg5 uint32, arg6 unsafe.Pointer, arg7 unsafe.Pointer) int32

ClEnqueueMigrateMemObjects calls the OpenCL framework function clEnqueueMigrateMemObjects.

func ClEnqueueNDRangeKernel

func ClEnqueueNDRangeKernel(arg obj.Object, arg2 obj.Object, arg3 uint32, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) (result int32, arg4 int, arg5 int, arg6 int)

ClEnqueueNDRangeKernel calls the OpenCL framework function clEnqueueNDRangeKernel.

func ClEnqueueNativeKernel

func ClEnqueueNativeKernel(arg obj.Object, arg2 unsafe.Pointer, arg3 unsafe.Pointer, arg4 int, arg5 uint32, arg6 unsafe.Pointer, arg7 unsafe.Pointer, arg8 uint32, arg9 unsafe.Pointer, arg10 unsafe.Pointer) int32

ClEnqueueNativeKernel calls the OpenCL framework function clEnqueueNativeKernel.

func ClEnqueueReadBuffer

func ClEnqueueReadBuffer(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 int, arg5 int, arg6 unsafe.Pointer, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) int32

ClEnqueueReadBuffer calls the OpenCL framework function clEnqueueReadBuffer.

func ClEnqueueReadBufferRect

func ClEnqueueReadBufferRect(arg obj.Object, arg2 obj.Object, arg3 uint32, arg7 int, arg8 int, arg9 int, arg10 int, arg11 unsafe.Pointer, arg12 uint32, arg13 unsafe.Pointer, arg14 unsafe.Pointer) (result int32, arg4 int, arg5 int, arg6 int)

ClEnqueueReadBufferRect calls the OpenCL framework function clEnqueueReadBufferRect.

func ClEnqueueReadImage

func ClEnqueueReadImage(arg obj.Object, arg2 obj.Object, arg3 uint32, arg6 int, arg7 int, arg8 unsafe.Pointer, arg9 uint32, arg10 unsafe.Pointer, arg11 unsafe.Pointer) (result int32, arg4 int, arg5 int)

ClEnqueueReadImage calls the OpenCL framework function clEnqueueReadImage.

func ClEnqueueReleaseGLObjects

func ClEnqueueReleaseGLObjects(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 uint32, arg5 unsafe.Pointer, arg6 unsafe.Pointer) int32

ClEnqueueReleaseGLObjects calls the OpenCL framework function clEnqueueReleaseGLObjects.

func ClEnqueueTask

func ClEnqueueTask(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 unsafe.Pointer, arg5 unsafe.Pointer) int32

ClEnqueueTask calls the OpenCL framework function clEnqueueTask.

func ClEnqueueUnmapMemObject

func ClEnqueueUnmapMemObject(arg obj.Object, arg2 obj.Object, arg3 unsafe.Pointer, arg4 uint32, arg5 unsafe.Pointer, arg6 unsafe.Pointer) int32

ClEnqueueUnmapMemObject calls the OpenCL framework function clEnqueueUnmapMemObject.

func ClEnqueueWaitForEvents

func ClEnqueueWaitForEvents(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer) int32

ClEnqueueWaitForEvents calls the OpenCL framework function clEnqueueWaitForEvents.

func ClEnqueueWriteBuffer

func ClEnqueueWriteBuffer(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 int, arg5 int, arg6 unsafe.Pointer, arg7 uint32, arg8 unsafe.Pointer, arg9 unsafe.Pointer) int32

ClEnqueueWriteBuffer calls the OpenCL framework function clEnqueueWriteBuffer.

func ClEnqueueWriteBufferRect

func ClEnqueueWriteBufferRect(arg obj.Object, arg2 obj.Object, arg3 uint32, arg7 int, arg8 int, arg9 int, arg10 int, arg11 unsafe.Pointer, arg12 uint32, arg13 unsafe.Pointer, arg14 unsafe.Pointer) (result int32, arg4 int, arg5 int, arg6 int)

ClEnqueueWriteBufferRect calls the OpenCL framework function clEnqueueWriteBufferRect.

func ClEnqueueWriteImage

func ClEnqueueWriteImage(arg obj.Object, arg2 obj.Object, arg3 uint32, arg6 int, arg7 int, arg8 unsafe.Pointer, arg9 uint32, arg10 unsafe.Pointer, arg11 unsafe.Pointer) (result int32, arg4 int, arg5 int)

ClEnqueueWriteImage calls the OpenCL framework function clEnqueueWriteImage.

func ClFinish

func ClFinish(arg obj.Object) int32

ClFinish calls the OpenCL framework function clFinish.

func ClFlush

func ClFlush(arg obj.Object) int32

ClFlush calls the OpenCL framework function clFlush.

func ClGetCommandQueueInfo

func ClGetCommandQueueInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetCommandQueueInfo calls the OpenCL framework function clGetCommandQueueInfo.

func ClGetContextInfo

func ClGetContextInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetContextInfo calls the OpenCL framework function clGetContextInfo.

func ClGetDAGNodeAPPLE

func ClGetDAGNodeAPPLE(d obj.Object, f obj.Object, nargs int) (result int, args int, argIndices uint32)

ClGetDAGNodeAPPLE calls the OpenCL framework function clGetDAGNodeAPPLE.

func ClGetDeviceIDs

func ClGetDeviceIDs(arg obj.Object, arg2 uint64, arg3 uint32, arg4 unsafe.Pointer) (result int32, arg5 uint32)

ClGetDeviceIDs calls the OpenCL framework function clGetDeviceIDs.

func ClGetDeviceInfo

func ClGetDeviceInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetDeviceInfo calls the OpenCL framework function clGetDeviceInfo.

func ClGetEventInfo

func ClGetEventInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetEventInfo calls the OpenCL framework function clGetEventInfo.

func ClGetEventProfilingInfo

func ClGetEventProfilingInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetEventProfilingInfo calls the OpenCL framework function clGetEventProfilingInfo.

func ClGetExtensionFunctionAddress

func ClGetExtensionFunctionAddress(arg string) unsafe.Pointer

ClGetExtensionFunctionAddress calls the OpenCL framework function clGetExtensionFunctionAddress.

func ClGetExtensionFunctionAddressForPlatform

func ClGetExtensionFunctionAddressForPlatform(arg obj.Object, arg2 string) unsafe.Pointer

ClGetExtensionFunctionAddressForPlatform calls the OpenCL framework function clGetExtensionFunctionAddressForPlatform.

func ClGetGLContextInfoAPPLE

func ClGetGLContextInfoAPPLE(arg obj.Object, arg2 unsafe.Pointer, arg3 uint32, arg4 int, arg5 unsafe.Pointer) (result int32, arg6 int)

ClGetGLContextInfoAPPLE calls the OpenCL framework function clGetGLContextInfoAPPLE.

func ClGetGLObjectInfo

func ClGetGLObjectInfo(arg obj.Object) (result int32, arg2 uint32, arg3 int)

ClGetGLObjectInfo calls the OpenCL framework function clGetGLObjectInfo.

func ClGetGLTextureInfo

func ClGetGLTextureInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetGLTextureInfo calls the OpenCL framework function clGetGLTextureInfo.

func ClGetImageInfo

func ClGetImageInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetImageInfo calls the OpenCL framework function clGetImageInfo.

func ClGetKernelArgInfo

func ClGetKernelArgInfo(arg obj.Object, arg2 uint32, arg3 uint32, arg4 int, arg5 unsafe.Pointer) (result int32, arg6 int)

ClGetKernelArgInfo calls the OpenCL framework function clGetKernelArgInfo.

func ClGetKernelInfo

func ClGetKernelInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetKernelInfo calls the OpenCL framework function clGetKernelInfo.

func ClGetKernelWorkGroupInfo

func ClGetKernelWorkGroupInfo(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 int, arg5 unsafe.Pointer) (result int32, arg6 int)

ClGetKernelWorkGroupInfo calls the OpenCL framework function clGetKernelWorkGroupInfo.

func ClGetMemObjectInfo

func ClGetMemObjectInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetMemObjectInfo calls the OpenCL framework function clGetMemObjectInfo.

func ClGetPlatformIDs

func ClGetPlatformIDs(arg uint32, arg2 unsafe.Pointer) (result int32, arg3 uint32)

ClGetPlatformIDs calls the OpenCL framework function clGetPlatformIDs.

func ClGetPlatformInfo

func ClGetPlatformInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetPlatformInfo calls the OpenCL framework function clGetPlatformInfo.

func ClGetProgramBuildInfo

func ClGetProgramBuildInfo(arg obj.Object, arg2 obj.Object, arg3 uint32, arg4 int, arg5 unsafe.Pointer) (result int32, arg6 int)

ClGetProgramBuildInfo calls the OpenCL framework function clGetProgramBuildInfo.

func ClGetProgramInfo

func ClGetProgramInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetProgramInfo calls the OpenCL framework function clGetProgramInfo.

func ClGetSamplerInfo

func ClGetSamplerInfo(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) (result int32, arg5 int)

ClGetSamplerInfo calls the OpenCL framework function clGetSamplerInfo.

func ClLinkProgram

func ClLinkProgram(arg obj.Object, arg2 uint32, arg3 unsafe.Pointer, arg4 string, arg5 uint32, arg6 unsafe.Pointer, arg7 unsafe.Pointer, arg8 unsafe.Pointer) (result obj.Object, arg9 int32)

ClLinkProgram calls the OpenCL framework function clLinkProgram.

func ClLogMessagesToStderrAPPLE

func ClLogMessagesToStderrAPPLE(arg string, arg2 unsafe.Pointer, arg3 int, arg4 unsafe.Pointer)

ClLogMessagesToStderrAPPLE calls the OpenCL framework function clLogMessagesToStderrAPPLE.

func ClLogMessagesToStdoutAPPLE

func ClLogMessagesToStdoutAPPLE(arg string, arg2 unsafe.Pointer, arg3 int, arg4 unsafe.Pointer)

ClLogMessagesToStdoutAPPLE calls the OpenCL framework function clLogMessagesToStdoutAPPLE.

func ClLogMessagesToSystemLogAPPLE

func ClLogMessagesToSystemLogAPPLE(arg string, arg2 unsafe.Pointer, arg3 int, arg4 unsafe.Pointer)

ClLogMessagesToSystemLogAPPLE calls the OpenCL framework function clLogMessagesToSystemLogAPPLE.

func ClReleaseCommandQueue

func ClReleaseCommandQueue(arg obj.Object) int32

ClReleaseCommandQueue calls the OpenCL framework function clReleaseCommandQueue.

func ClReleaseContext

func ClReleaseContext(arg obj.Object) int32

ClReleaseContext calls the OpenCL framework function clReleaseContext.

func ClReleaseDAGAPPLE

func ClReleaseDAGAPPLE(dag obj.Object)

ClReleaseDAGAPPLE calls the OpenCL framework function clReleaseDAGAPPLE.

func ClReleaseDevice

func ClReleaseDevice(arg obj.Object) int32

ClReleaseDevice calls the OpenCL framework function clReleaseDevice.

func ClReleaseEvent

func ClReleaseEvent(arg obj.Object) int32

ClReleaseEvent calls the OpenCL framework function clReleaseEvent.

func ClReleaseKernel

func ClReleaseKernel(arg obj.Object) int32

ClReleaseKernel calls the OpenCL framework function clReleaseKernel.

func ClReleaseMemObject

func ClReleaseMemObject(arg obj.Object) int32

ClReleaseMemObject calls the OpenCL framework function clReleaseMemObject.

func ClReleaseProgram

func ClReleaseProgram(arg obj.Object) int32

ClReleaseProgram calls the OpenCL framework function clReleaseProgram.

func ClReleaseSampler

func ClReleaseSampler(arg obj.Object) int32

ClReleaseSampler calls the OpenCL framework function clReleaseSampler.

func ClRetainCommandQueue

func ClRetainCommandQueue(arg obj.Object) int32

ClRetainCommandQueue calls the OpenCL framework function clRetainCommandQueue.

func ClRetainContext

func ClRetainContext(arg obj.Object) int32

ClRetainContext calls the OpenCL framework function clRetainContext.

func ClRetainDevice

func ClRetainDevice(arg obj.Object) int32

ClRetainDevice calls the OpenCL framework function clRetainDevice.

func ClRetainEvent

func ClRetainEvent(arg obj.Object) int32

ClRetainEvent calls the OpenCL framework function clRetainEvent.

func ClRetainKernel

func ClRetainKernel(arg obj.Object) int32

ClRetainKernel calls the OpenCL framework function clRetainKernel.

func ClRetainMemObject

func ClRetainMemObject(arg obj.Object) int32

ClRetainMemObject calls the OpenCL framework function clRetainMemObject.

func ClRetainProgram

func ClRetainProgram(arg obj.Object) int32

ClRetainProgram calls the OpenCL framework function clRetainProgram.

func ClRetainSampler

func ClRetainSampler(arg obj.Object) int32

ClRetainSampler calls the OpenCL framework function clRetainSampler.

func ClSetEventCallback

func ClSetEventCallback(arg obj.Object, arg2 int32, arg3 unsafe.Pointer, arg4 unsafe.Pointer) int32

ClSetEventCallback calls the OpenCL framework function clSetEventCallback.

func ClSetKernelArg

func ClSetKernelArg(arg obj.Object, arg2 uint32, arg3 int, arg4 unsafe.Pointer) int32

ClSetKernelArg calls the OpenCL framework function clSetKernelArg.

func ClSetKernelArgByNameAPPLE

func ClSetKernelArgByNameAPPLE(arg obj.Object, arg2 string, arg3 int, arg4 unsafe.Pointer) int32

ClSetKernelArgByNameAPPLE calls the OpenCL framework function clSetKernelArgByNameAPPLE.

func ClSetKernelArgsVaListAPPLE

func ClSetKernelArgsVaListAPPLE(arg obj.Object, arg2 uint32, arg3 string) int32

ClSetKernelArgsVaListAPPLE calls the OpenCL framework function clSetKernelArgsVaListAPPLE.

func ClSetMemObjectDestructorAPPLE

func ClSetMemObjectDestructorAPPLE(arg obj.Object, arg2 unsafe.Pointer, arg3 unsafe.Pointer) int32

ClSetMemObjectDestructorAPPLE calls the OpenCL framework function clSetMemObjectDestructorAPPLE.

func ClSetMemObjectDestructorCallback

func ClSetMemObjectDestructorCallback(arg obj.Object, arg2 unsafe.Pointer, arg3 unsafe.Pointer) int32

ClSetMemObjectDestructorCallback calls the OpenCL framework function clSetMemObjectDestructorCallback.

func ClSetUserEventStatus

func ClSetUserEventStatus(arg obj.Object, arg2 int32) int32

ClSetUserEventStatus calls the OpenCL framework function clSetUserEventStatus.

func ClUnloadCompiler

func ClUnloadCompiler() int32

ClUnloadCompiler calls the OpenCL framework function clUnloadCompiler.

func ClUnloadPlatformCompiler

func ClUnloadPlatformCompiler(arg obj.Object) int32

ClUnloadPlatformCompiler calls the OpenCL framework function clUnloadPlatformCompiler.

func ClWaitForEvents

func ClWaitForEvents(arg uint32, arg2 unsafe.Pointer) int32

ClWaitForEvents calls the OpenCL framework function clWaitForEvents.

func GclCopyImage

func GclCopyImage(dstImage unsafe.Pointer, srcImage unsafe.Pointer) (dstOrigin int, srcOrigin int, region int)

GclCopyImage calls the OpenCL framework function gcl_copy_image.

func GclCopyImageToPtr

func GclCopyImageToPtr(dstPtr unsafe.Pointer, srcImage unsafe.Pointer) (srcOrigin int, region int)

GclCopyImageToPtr calls the OpenCL framework function gcl_copy_image_to_ptr.

func GclCopyPtrToImage

func GclCopyPtrToImage(dstImage obj.Object, srcPtr unsafe.Pointer) (dstOrigin int, region int)

GclCopyPtrToImage calls the OpenCL framework function gcl_copy_ptr_to_image.

func GclCreateBufferFromPtr

func GclCreateBufferFromPtr(ptr unsafe.Pointer) obj.Object

GclCreateBufferFromPtr calls the OpenCL framework function gcl_create_buffer_from_ptr.

func GclCreateDispatchQueue

func GclCreateDispatchQueue(flags uint64, deviceId obj.Object) unsafe.Pointer

GclCreateDispatchQueue calls the OpenCL framework function gcl_create_dispatch_queue.

func GclCreateKernelFromBlock

func GclCreateKernelFromBlock(kernelBlockPtr unsafe.Pointer) obj.Object

GclCreateKernelFromBlock calls the OpenCL framework function gcl_create_kernel_from_block.

func GclFree

func GclFree(ptr unsafe.Pointer)

GclFree calls the OpenCL framework function gcl_free.

func GclGetContext

func GclGetContext() obj.Object

GclGetContext calls the OpenCL framework function gcl_get_context.

func GclGetDeviceIdWithDispatchQueue

func GclGetDeviceIdWithDispatchQueue(queue obj.Object) obj.Object

GclGetDeviceIdWithDispatchQueue calls the OpenCL framework function gcl_get_device_id_with_dispatch_queue.

func GclGetKernelBlockWorkgroupInfo

func GclGetKernelBlockWorkgroupInfo(kernelBlockPtr unsafe.Pointer, paramName uint32, paramValueSize int, paramValue unsafe.Pointer) (paramValueSizeRet int)

GclGetKernelBlockWorkgroupInfo calls the OpenCL framework function gcl_get_kernel_block_workgroup_info.

func GclGlCreateImageFromRenderbuffer

func GclGlCreateImageFromRenderbuffer(renderBuffer uint32) unsafe.Pointer

GclGlCreateImageFromRenderbuffer calls the OpenCL framework function gcl_gl_create_image_from_renderbuffer.

func GclGlCreateImageFromTexture

func GclGlCreateImageFromTexture(textureTarget uint32, mipLevel int32, texture uint32) unsafe.Pointer

GclGlCreateImageFromTexture calls the OpenCL framework function gcl_gl_create_image_from_texture.

func GclGlCreatePtrFromBuffer

func GclGlCreatePtrFromBuffer(bufobj uint32) unsafe.Pointer

GclGlCreatePtrFromBuffer calls the OpenCL framework function gcl_gl_create_ptr_from_buffer.

func GclGlSetSharegroup

func GclGlSetSharegroup(share unsafe.Pointer)

GclGlSetSharegroup calls the OpenCL framework function gcl_gl_set_sharegroup.

func GclMalloc

func GclMalloc(data int, hostPtr unsafe.Pointer, flags uint64) unsafe.Pointer

GclMalloc calls the OpenCL framework function gcl_malloc.

func GclMapImage

func GclMapImage(image unsafe.Pointer, mapFlags uint64) (result unsafe.Pointer, origin int, region int)

GclMapImage calls the OpenCL framework function gcl_map_image.

func GclMapPtr

func GclMapPtr(ptr unsafe.Pointer, mapFlags uint64, cb int) unsafe.Pointer

GclMapPtr calls the OpenCL framework function gcl_map_ptr.

func GclMemcpy

func GclMemcpy(dst unsafe.Pointer, src unsafe.Pointer, size int)

GclMemcpy calls the OpenCL framework function gcl_memcpy.

func GclMemcpyRect

func GclMemcpyRect(dst unsafe.Pointer, src unsafe.Pointer, dstRowPitch int, dstSlicePitch int, srcRowPitch int, srcSlicePitch int) (dstOrigin int, srcOrigin int, region int)

GclMemcpyRect calls the OpenCL framework function gcl_memcpy_rect.

func GclReleaseImage

func GclReleaseImage(image unsafe.Pointer)

GclReleaseImage calls the OpenCL framework function gcl_release_image.

func GclRetainImage

func GclRetainImage(image unsafe.Pointer)

GclRetainImage calls the OpenCL framework function gcl_retain_image.

func GclSetFinalizer

func GclSetFinalizer(object unsafe.Pointer, clPfnFinalizer unsafe.Pointer, userData unsafe.Pointer)

GclSetFinalizer calls the OpenCL framework function gcl_set_finalizer.

func GclStartTimer

func GclStartTimer() uint64

GclStartTimer calls the OpenCL framework function gcl_start_timer.

func GclStopTimer

func GclStopTimer(t uint64) float64

GclStopTimer calls the OpenCL framework function gcl_stop_timer.

func GclUnmap

func GclUnmap(arg unsafe.Pointer)

GclUnmap calls the OpenCL framework function gcl_unmap.

Types

type AutoreleaseFrequency added in v0.17.0

type AutoreleaseFrequency uint64
const (
	AutoreleaseFrequencyInherit  AutoreleaseFrequency = 0
	AutoreleaseFrequencyWorkItem AutoreleaseFrequency = 1
	AutoreleaseFrequencyNever    AutoreleaseFrequency = 2
)

func (AutoreleaseFrequency) String added in v0.17.0

func (e AutoreleaseFrequency) String() string

String returns the AutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type BlockFlags added in v0.17.0

type BlockFlags uint64

Bitmask — values may be combined with |.

const (
	BlockFlagsBarrier         BlockFlags = 1
	BlockFlagsDetached        BlockFlags = 2
	BlockFlagsAssignCurrent   BlockFlags = 4
	BlockFlagsNoQosClass      BlockFlags = 8
	BlockFlagsInheritQosClass BlockFlags = 16
	BlockFlagsEnforceQosClass BlockFlags = 32
)

func (BlockFlags) String added in v0.17.0

func (e BlockFlags) String() string

String returns the BlockFlags constant's name, or its numeric form when the value is not a known constant.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type ClBufferRegion

type ClBufferRegion struct {
	Origin uint
	Size   uint
}

type ClCommandQueue

type ClCommandQueue struct{}

type ClContext

type ClContext struct{}

type ClDag

type ClDag struct{}

type ClDeviceId

type ClDeviceId struct{}

type ClEvent

type ClEvent struct{}

type ClImageDesc

type ClImageDesc struct {
	ImageType       uint32
	ImageWidth      uint
	ImageHeight     uint
	ImageDepth      uint
	ImageArraySize  uint
	ImageRowPitch   uint
	ImageSlicePitch uint
	NumMipLevels    uint32
	NumSamples      uint32
	Buffer          unsafe.Pointer
}

type ClImageFormat

type ClImageFormat struct {
	ImageChannelOrder    uint32
	ImageChannelDataType uint32
}

func ClCreateImage

func ClCreateImage(arg obj.Object, arg2 uint64, arg4 unsafe.Pointer, arg5 unsafe.Pointer) (result obj.Object, arg3 ClImageFormat, arg6 int32)

ClCreateImage calls the OpenCL framework function clCreateImage.

func ClCreateImage2D

func ClCreateImage2D(arg obj.Object, arg2 uint64, arg4 int, arg5 int, arg6 int, arg7 unsafe.Pointer) (result obj.Object, arg3 ClImageFormat, arg8 int32)

ClCreateImage2D calls the OpenCL framework function clCreateImage2D.

func ClCreateImage3D

func ClCreateImage3D(arg obj.Object, arg2 uint64, arg4 int, arg5 int, arg6 int, arg7 int, arg8 int, arg9 unsafe.Pointer) (result obj.Object, arg3 ClImageFormat, arg10 int32)

ClCreateImage3D calls the OpenCL framework function clCreateImage3D.

func ClCreateImageFromIOSurface2DAPPLE

func ClCreateImageFromIOSurface2DAPPLE(arg obj.Object, arg2 uint64, arg4 int, arg5 int, arg6 obj.Object) (result obj.Object, arg3 ClImageFormat, arg7 int32)

ClCreateImageFromIOSurface2DAPPLE calls the OpenCL framework function clCreateImageFromIOSurface2DAPPLE.

func ClCreateImageFromIOSurfaceWithPropertiesAPPLE

func ClCreateImageFromIOSurfaceWithPropertiesAPPLE(arg obj.Object, arg2 uint64, arg4 unsafe.Pointer) (result obj.Object, arg3 ClImageFormat, arg5 int, arg6 int32)

ClCreateImageFromIOSurfaceWithPropertiesAPPLE calls the OpenCL framework function clCreateImageFromIOSurfaceWithPropertiesAPPLE.

func ClGetSupportedImageFormats

func ClGetSupportedImageFormats(arg obj.Object, arg2 uint64, arg3 uint32, arg4 uint32) (result int32, arg5 ClImageFormat, arg6 uint32)

ClGetSupportedImageFormats calls the OpenCL framework function clGetSupportedImageFormats.

func GclCreateImage

func GclCreateImage(imageWidth int, imageHeight int, imageDepth int, ioSurface obj.Object) (result unsafe.Pointer, imageFormat ClImageFormat)

GclCreateImage calls the OpenCL framework function gcl_create_image.

func GclGetSupportedImageFormats

func GclGetSupportedImageFormats(deviceId obj.Object, imageType uint32, numEntries int) (imageFormats ClImageFormat, numImageFormats uint32)

GclGetSupportedImageFormats calls the OpenCL framework function gcl_get_supported_image_formats.

type ClKernel

type ClKernel struct{}

type ClMem

type ClMem struct{}

type ClNdrange

type ClNdrange struct {
	WorkDim          uint
	GlobalWorkOffset [3]uint
	GlobalWorkSize   [3]uint
	LocalWorkSize    [3]uint
}

type ClPlatformId

type ClPlatformId struct{}

type ClProgram

type ClProgram struct{}

type ClSampler

type ClSampler struct{}

type ClkSamplerType added in v0.17.0

type ClkSamplerType int64
const (
	ClkSamplerTypeAddressBase           ClkSamplerType = 0
	ClkSamplerTypeAddressNone           ClkSamplerType = 0
	ClkSamplerTypeAddressClamp          ClkSamplerType = 1
	ClkSamplerTypeAddressClampToEdge    ClkSamplerType = 2
	ClkSamplerTypeAddressRepeat         ClkSamplerType = 3
	ClkSamplerTypeAddressMirroredRepeat ClkSamplerType = 4
	ClkSamplerTypeAddressMask           ClkSamplerType = 7
	ClkSamplerTypeAddressBits           ClkSamplerType = 3
	ClkSamplerTypeNormalizedBase        ClkSamplerType = 3
	ClkSamplerTypeNormalizedCoordsFalse ClkSamplerType = 0
	ClkSamplerTypeNormalizedCoordsTrue  ClkSamplerType = 8
	ClkSamplerTypeNormalizedMask        ClkSamplerType = 8
	ClkSamplerTypeNormalizedBits        ClkSamplerType = 1
	ClkSamplerTypeFilterBase            ClkSamplerType = 4
	ClkSamplerTypeFilterNearest         ClkSamplerType = 0
	ClkSamplerTypeFilterLinear          ClkSamplerType = 16
	ClkSamplerTypeFilterMask            ClkSamplerType = 16
	ClkSamplerTypeFilterBits            ClkSamplerType = 2
)

func (ClkSamplerType) String added in v0.17.0

func (e ClkSamplerType) String() string

String returns the ClkSamplerType constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int64
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type GLsync

type GLsync struct{}

type IOSurface

type IOSurface struct{}

type Idtype added in v0.17.0

type Idtype int64
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags int64

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid int64
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL