Platforms to show: All Mac Windows Linux Cross-Platform

CLMemMBS class   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
class OpenCL MBS MacFrameworks Plugin 11.1 ✅ Yes ❌ No ❌ No ✅ Yes All
This item is deprecated and should no longer be used.
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)

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 using this class:

Blog Entries


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


CLLocationMBS   -   CLPlacemarkMBS


The biggest plugin in space...