Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CLCommandQueueMBS 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 command queue.
Example:
dim devices(-1) as CLDeviceMBS = OpenCLMBS.AllDevices(CLDeviceMBS.kDeviceTypeGPU)
dim device as CLDeviceMBS = devices(0) // we use first one

// Create a context
dim context as new CLContextMBS(device, CLContextMBS.kErrorModeLogMessagesToSystemLog)

// Create a command queue
dim queue as new CLCommandQueueMBS(context, device, 0)

Feedback, Comments & Corrections

  • 2 properties
  • 40 methods
    • method Constructor(context as CLContextMBS, device as CLDeviceMBS, flags as Integer = 0)
    • method Context as CLContextMBS
    • method Device as CLDeviceMBS
    • method EnqueueBarrier
    • method EnqueueCopyBuffer(sourceBuffer as CLMemMBS, destBuffer as CLMemMBS, sourceOffset as Integer, destOffset as Integer, size as Integer)
    • method EnqueueCopyBuffer(sourceBuffer as CLMemMBS, destBuffer as CLMemMBS, sourceOffset as Integer, destOffset as Integer, size as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method 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)
    • method 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)
    • method 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)
    • method 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)
    • method 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)
    • method 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)
    • method 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
    • method EnqueueMapBuffer(buffer as CLMemMBS, MapFlags as Integer, offset as Integer, size as Integer) as memoryblock
    • method 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
    • method EnqueueMapImage(image as CLMemMBS, 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) as memoryblock
    • method EnqueueMarker(byref outEvent as CLEventMBS)
    • method EnqueueNativeKernel(FunctionPtr as ptr, args as memoryblock, argsSize as Integer, NumberOfMemoryObjects as Integer, MemList as memoryblock, ArgsMemoryLocations as memoryblock)
    • method 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)
    • method EnqueueNDRangeKernel(kernel as CLKernelMBS, GlobalWorkSize as Integer, LocalWorkSize as Integer)
    • method EnqueueNDRangeKernel(kernel as CLKernelMBS, GlobalWorkSize as Integer, LocalWorkSize as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method EnqueueReadBuffer(buffer as CLMemMBS, BlockingRead as boolean, offset as Integer, size as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method EnqueueReadBuffer(buffer as CLMemMBS, offset as Integer, size as Integer, mem as Memoryblock)
    • method 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)
    • method EnqueueReadImage(image as CLMemMBS, 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)
    • method EnqueueReadPicture(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, RegionWidth as Integer, RegionHeight as Integer, pic as picture)
    • method EnqueueTask(kernel as CLKernelMBS)
    • method EnqueueTask(kernel as CLKernelMBS, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method EnqueueUnmapMemObject(buffer as CLMemMBS, mem as Memoryblock)
    • method EnqueueUnmapMemObject(buffer as CLMemMBS, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method EnqueueWaitForEvents(EventWaitList() as CLEventMBS)
    • method EnqueueWriteBuffer(buffer as CLMemMBS, BlockingWrite as boolean, offset as Integer, size as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
    • method EnqueueWriteBuffer(buffer as CLMemMBS, offset as Integer, size as Integer, mem as Memoryblock)
    • method 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)
    • method EnqueueWriteImage(image as CLMemMBS,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)
    • method EnqueueWritePicture(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, RegionWidth as Integer, RegionHeight as Integer, pic as picture)
    • method Finish
    • method Flush
    • method Properties as UInt32
    • method ReferenceCount as UInt32

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


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


CKUserIdentityMBS   -   CLContextMBS




Links
MBS Xojo blog