CLContextMBS 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
CLContextMBS class Deprecated
This item is deprecated and should no longer be used.
The OpenCL class for a context.
Example
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)
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.
2 properties
9 methods
method Constructor (Device as CLDeviceMBS , ErrorHandlerMode as Integer = 0)
method Constructor (Devices() as CLDeviceMBS , ErrorHandlerMode as Integer = 0)
method Constructor (DeviceType as Integer, ErrorHandlerMode as Integer = 0)
method Constructor (Platform as CLPlatformMBS , Device as CLDeviceMBS , ErrorHandlerMode as Integer = 0)
method Constructor (Platform as CLPlatformMBS , Devices() as CLDeviceMBS , ErrorHandlerMode as Integer = 0)
method Constructor (Platform as CLPlatformMBS , DeviceType as Integer, ErrorHandlerMode as Integer = 0)
method Devices as CLDeviceMBS ()
method GetSupportedImageFormats (flags as UInt64, type as UInt32) as CLImageFormatMBS ()
method ReferenceCount as UInt32
4 constants
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:
CLCommandQueueMBS.Constructor (context as CLContextMBS, device as CLDeviceMBS , flags as Integer = 0)
CLCommandQueueMBS.Context as CLContextMBS
CLMemMBS.Constructor (Context as CLContextMBS, Flags as UInt64, ImageFormat as CLImageFormatMBS , Width as Integer, Height as Integer, RowPitch as Integer, HostPtr as Memoryblock = nil)
CLMemMBS.Constructor (Context as CLContextMBS, Flags as UInt64, Size as Integer, HostPtr as Memoryblock = nil)
CLMemMBS.Context as CLContextMBS
CLProgramMBS.Constructor (context as CLContextMBS, devices() as CLDeviceMBS , binaries() as string, status() as Integer)
CLProgramMBS.Constructor (context as CLContextMBS, line as string)
CLProgramMBS.Constructor (context as CLContextMBS, lines() as string)
CLSamplerMBS.Constructor (Context as CLContextMBS, NormalizedCoords as Boolean, AddressingMode as UInt32, FilterMode as UInt32)
CLSamplerMBS.Context as CLContextMBS
Some properties using for this class:
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin .
CLCommandQueueMBS
-
CLDeviceMBS