Platforms to show: All Mac Windows Linux Cross-Platform
Back to CLContextMBS class.
CLContextMBS.Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Optional, Specifies the platform to use.
Devices: The devices you want to use. Can be one or several devices. If you specify none, the default one is picked.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Lasterror is set.
See also:
- Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
CLContextMBS.Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Optional, specifies the platform to use.
Devices: The devices you want to use. Can be one or several devices. If you specify none, the default one is picked.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Lasterror is set.
See also:
- Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
CLContextMBS.Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Optional, Specifies the platform to use.
DeviceType: A bit-field that identifies the type of device and is described in the table below.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Constants | Description |
kDeviceTypeCPU | An OpenCL device that is the host processor. The host processor runs the OpenCL implementations and is a single or multi-core CPU. |
kDeviceTypeGPU | An OpenCL device that is a GPU. By this we mean that the device can also be used to accelerate a 3D API such as OpenGL or DirectX. |
kDeviceTypeAccelerator | Dedicated OpenCL accelerators (for example the IBM CELL Blade). These devices communicate with the host processor using a peripheral interconnect such as PCIe. |
kDeviceTypeDefault | The default OpenCL device in the system. |
kDeviceTypeAll | All OpenCL devices available in the system. |
See also:
- Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
CLContextMBS.Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Specifies the platform to use.
Devices: The devices you want to use. Can be one or several devices. If you specify none, the default one is picked.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Lasterror is set.
See also:
- Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
CLContextMBS.Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Specifies the platform to use.
Devices: The devices you want to use. Can be one or several devices. If you specify none, the default one is picked.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Lasterror is set.
See also:
- Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
CLContextMBS.Constructor(Platform as CLPlatformMBS, DeviceType as Integer, ErrorHandlerMode as Integer = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Platform: Optional, Specifies the platform to use.
DeviceType: A bit-field that identifies the type of device and is described in the table below.
ErrorHandlerMode: The error handler mode. Check kErrorMode* constants.
Constants | Description |
kDeviceTypeCPU | An OpenCL device that is the host processor. The host processor runs the OpenCL implementations and is a single or multi-core CPU. |
kDeviceTypeGPU | An OpenCL device that is a GPU. By this we mean that the device can also be used to accelerate a 3D API such as OpenGL or DirectX. |
kDeviceTypeAccelerator | Dedicated OpenCL accelerators (for example the IBM CELL Blade). These devices communicate with the host processor using a peripheral interconnect such as PCIe. |
kDeviceTypeDefault | The default OpenCL device in the system. |
kDeviceTypeAll | All OpenCL devices available in the system. |
See also:
- Constructor(Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(DeviceType as Integer, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Device as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
- Constructor(Platform as CLPlatformMBS, Devices() as CLDeviceMBS, ErrorHandlerMode as Integer = 0)
CLContextMBS.Devices as CLDeviceMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CLContextMBS.GetSupportedImageFormats(flags as UInt64, type as UInt32) as CLImageFormatMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
self: A valid OpenCL context on which the image object(s) will be created.
flags: A bit-field that is used to specify allocation and usage information about the image memory object being created and is described in the List of supported cl_mem_flags values for clCreateBuffer
type: Describes the image type and must be either kMemoryTypeImage2D or kMemoryTypeImage3D.
Returns an array of imageformat objects.
CLContextMBS.ReferenceCount as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacFrameworks Plugin.