CLMemMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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


💬 Ask a question or report a problem