Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CLEventMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class OpenCL MBS MacFrameworks Plugin 11.1 Yes No No Yes, macOS only No
Function: The class for an OpenCL event.
Notes: You can chain several operations together inside a command queue. With events you can have an item execute after another item.

Feedback, Comments & Corrections

Command Type Constants

Constant Value Description
kCommandAcquireGLObjects &h11FF Acquire GL objects
kCommandCopyBuffer &h11F5 Copy Buffer
kCommandCopyBufferToImage &h11FA Copy Buffer to Image
kCommandCopyImage &h11F8 Copy Image
kCommandCopyImageToBuffer &h11F9 Copy Image to Buffer
kCommandMapBuffer &h11FB Map Buffer
kCommandMapImage &h11FC Map Image
kCommandMarker &h11FE Marker
kCommandNativeKernel &h11F2 Execute Native Kernel
kCommandNDRangeKernel &h11F0 Execute a ND Range Kernel
kCommandReadBuffer &h11F3 Read Buffer
kCommandReadImage &h11F6 Read Image
kCommandReleaseGLObjects &h1200 Release GL objects
kCommandTask &h11F1 Execute task
kCommandUnmapMemObject &h11FD Unmap memory object
kCommandWriteBuffer &h11F4 Write Buffer
kCommandWriteImage &h11F7 Write Image

Command excecution status constants.

Constant Value Description
kCommandExecutionStatusComplete 0 The command has completed.
kCommandExecutionStatusQueued 3 command has been enqueued in the command-queue.
kCommandExecutionStatusRunning 1 Device is currently executing this command.
kCommandExecutionStatusSubmitted 2 enqueued command has been submitted by the host to the device associated with the command-queue.

This class has no sub classes.

Some methods using this class:

  • CLCommandQueueMBS.EnqueueCopyBuffer(sourceBuffer as CLMemMBS, destBuffer as CLMemMBS, sourceOffset as Integer, destOffset as Integer, size as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueCopyBufferToImage(SourceBuffer as CLMemMBS, destImage as CLMemMBS, sourceOffset as Integer, destOriginX as Integer, destOriginY as Integer, destOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueCopyImage(sourceImage as CLMemMBS, destImage as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, destOriginX as Integer, destOriginY as Integer, destOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueCopyImageToBuffer(sourceImage as CLMemMBS, destBuffer as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, destOffset as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueMapBuffer(buffer as CLMemMBS, BlockingMap as boolean, MapFlags as Integer, offset as Integer, size as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS) as memoryblock
  • CLCommandQueueMBS.EnqueueMapImage(image as CLMemMBS, BlockingMap as boolean, MapFlags as Integer, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, byref RowPitch as Integer, byref SlicePitch as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS) as memoryblock
  • CLCommandQueueMBS.EnqueueMarker(byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueNativeKernel(FunctionPtr as ptr, args as memoryblock, argsSize as Integer, NumberOfMemoryObjects as Integer, MemList as memoryblock, ArgsMemoryLocations as memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueNDRangeKernel(kernel as CLKernelMBS, GlobalWorkSize as Integer, LocalWorkSize as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueReadBuffer(buffer as CLMemMBS, BlockingRead as boolean, offset as Integer, size as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueReadImage(image as CLMemMBS, BlockingRead as boolean, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, RowPitch as Integer, SlicePitch as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueTask(kernel as CLKernelMBS, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueUnmapMemObject(buffer as CLMemMBS, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueWaitForEvents(EventWaitList() as CLEventMBS)
  • CLCommandQueueMBS.EnqueueWriteBuffer(buffer as CLMemMBS, BlockingWrite as boolean, offset as Integer, size as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • CLCommandQueueMBS.EnqueueWriteImage(image as CLMemMBS, BlockingWrite as boolean, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, RowPitch as Integer, SlicePitch as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
  • OpenCLMBS.WaitForEvents(events() as CLEventMBS)

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


CLDeviceMBS   -   CLGeocodeCompletionHandlerMBS




Links
MBS Xojo Chart Plugins