Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

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.
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:

Some examples which use this class:

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

CLLocationMBS   -   CLPlacemarkMBS

MBS Xojo PDF Plugins