Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CLMemMBS 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 a OpenCL memory block.
Example:
const Size = 4096
dim context as CLContextMBS // your context
dim input as new CLMemMBS(context, CLMEMMBS.kMemoryReadOnly, 4096)

Feedback, Comments & Corrections

Mapping mode constants

Constant Value Description
kMapRead 1
kMapWrite 2

Constants for creating a memory block.

Constant Value Description
kMemoryAllocHostPtr 16
kMemoryCopyHostPtr 32
kMemoryReadOnly 4
kMemoryReadWrite 1
kMemoryUseHostPtr 8
kMemoryWriteOnly 2 This flags specifies that the memory object will be written but not read by a kernel.

Reading from a buffer or image object created with kMemoryWriteOnly inside a kernel is undefined.

Memory object types.

Constant Value Description
kMemoryTypeBuffer &h10F0 A normal memory buffer.
kMemoryTypeImage2D &h10F1 2D Image
kMemoryTypeImage3D &h10F2 3D Image

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)
  • 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)
  • 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)
  • 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)
  • 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.EnqueueMapBuffer(buffer as CLMemMBS, MapFlags as Integer, offset as Integer, size as Integer) 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.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
  • 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.EnqueueReadBuffer(buffer as CLMemMBS, offset as Integer, size as Integer, mem as Memoryblock)
  • 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.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)
  • CLCommandQueueMBS.EnqueueReadPicture(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, RegionWidth as Integer, RegionHeight as Integer, pic as picture)
  • CLCommandQueueMBS.EnqueueUnmapMemObject(buffer as CLMemMBS, mem as Memoryblock)
  • CLCommandQueueMBS.EnqueueUnmapMemObject(buffer as CLMemMBS, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent 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.EnqueueWriteBuffer(buffer as CLMemMBS, offset as Integer, size as Integer, mem as Memoryblock)

Some examples which use this class:


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


CLLocationMBS   -   CLPlacemarkMBS




Links
MBS FileMaker Plugins