Platforms to show: All Mac Windows Linux Cross-Platform

CLContextMBS 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 OpenCL class for a context.
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)
Notes: Contexts are used by the OpenCL runtime for managing objects such as command-queues, memory, program and kernel objects and for executing kernels on one or more devices specified in the context.

Feedback, Comments & Corrections

Error mode constants

Constant Value Description
kErrorModeIgnore 0
kErrorModeLogMessagesToStderr 3 Sends all log messages to the file descriptor stderr.
kErrorModeLogMessagesToStdout 2 Sends all log messages to the file descriptor stdout.
kErrorModeLogMessagesToSystemLog 1 Fowards on all log messages to the Apple System Logger.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:

Blog Entries

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

CLCommandQueueMBS   -   CLDeviceMBS

The biggest plugin in space...

MBS Xojo Chart Plugins